by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 29 2018 11:10
    iainnicol closed #246
  • Nov 25 2018 13:24
    iainnicol commented #246
  • Nov 25 2018 13:23
    iainnicol commented #246
  • Nov 25 2018 12:51
    haf commented #246
  • Nov 25 2018 12:31
    iainnicol commented #246
  • Nov 25 2018 11:52
    haf commented #246
  • Nov 24 2018 23:36
    iainnicol opened #246
  • Nov 08 2018 17:59
  • Oct 31 2018 22:20
    aldaircruz starred Albacore/albacore
  • Oct 25 2018 12:53
  • Oct 15 2018 18:11
  • Sep 29 2018 22:42
    aldaircruz starred Albacore/albacore
  • Sep 19 2018 07:51
    FlyPythons starred Albacore/albacore
  • Sep 14 2018 11:41
    igorkovalchuk starred Albacore/albacore
  • Sep 04 2018 08:18
    haf closed #245
  • Sep 04 2018 08:18
    haf commented #245
  • Sep 04 2018 08:17
    haf closed #244
  • Sep 04 2018 08:17
    haf commented #244
  • Sep 03 2018 13:02
    LaraUrban opened #245
  • Sep 03 2018 12:09
    LaraUrban opened #244
Henrik Feldt
@haf
All I need is that it's acceptably cross-platform
But start with what you need/have an we'll go from there.
Daniel Weinand
@devployment
Ok. So that means it would be something that would live in the gem as well, so that I don't have to maintain my local things?
Henrik Feldt
@haf
Yeah
Daniel Weinand
@devployment
Ok. Cool. I'll take a look and come back with more questions or a pull request. ;)
Henrik Feldt
@haf
  • needs a page on the wiki
Sweet!
=)
Daniel Weinand
@devployment
Thanks
Henrik Feldt
@haf
np! Have fun hacking some ruby now!
Joel
@joelwilson

Hi all I have a hopefully simple question:

The system command/method which albacore provides turns forward slashes into backslashes (I am on windows). One of the arguments to the command I pass is a jdbc connection string which requires forward slashes. Albacore turns them into back-slashes which breaks the cmd. I can get it working via the exec method but am wondering if there there is a way to bypass the albacore system method and use the default ruby implementation.

Joel
@joelwilson
I'm probably also missing some way of escaping the slashes so albacore won't convert them. That would work
Joel
@joelwilson
nevermind I didn't realize there was a cmd args array. I have everything working just fine with that
:D
Jonathan Channon
@jchannon
hi anyone about?
Henrik Feldt
@haf
Hello @jchannon
A bit late to the party ;)
You probably found me on github or on twitter in the mean while
Glen
@tgp1994
Hi everyone, I'm trying to modify a rakefile to build for additional platforms/devices in a C# project. I've added the csproj files, but when I have AppVeyor build it it says lib\net40 not found, removing from nuspec for all three projects including the original one that used to build (for net20). Strangely, it still outputs the iOS binary while the other two are omitted. I could paste the modified section of the ratefile if that's ok in chat.
Glen
@tgp1994
This message was deleted
Yikes, that didn't format well, sorry folks.
=begin
desc "package nugets"
nugets_pack :create_nugets => ['build/pkg', :versioning, :build] do |p|
  p.files         = %w[src/Zip/Zip\ DLL.csproj]
  p.out           = 'build/pkg'
  p.exe           = 'buildsupport/NuGet.exe'
  p.configuration = 'Release'
  p.target        = 'net20'

  p.with_metadata do |m|
    m.id            = 'DotNetZip'
    m.version       = ENV['NUGET_VERSION']
    # of the nuget at least
    m.authors       = 'Henrik/Dino Chisa'
    m.description   = 'A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.'
    m.summary       = 'A library for dealing with zip, bzip and zlib from .Net'
    m.language      = 'en-GB'
    m.copyright     = 'Dino Chiesa'
    m.release_notes = "Full version: #{ENV['BUILD_VERSION']}."
    m.license_url   = "https://raw.githubusercontent.com/haf/DotNetZip.Semverd/master/LICENSE"
    m.project_url   = "https://github.com/haf/DotNetZip.Semverd"
  end

  p.no_project_dependencies
end
=end

desc "package nugets"
nugets_pack :create_nugets => ['build/pkg', :versioning, :build] do |p|
  p.configuration = 'Release'
  p.files         = FileList['src/Zip/*.csproj', 'src/Zip.Android/*.csproj', 'src/Zip.iOS/*.csproj']
  p.out           = 'build/pkg'
  p.exe           = 'buildsupport/NuGet.exe'
  p.leave_nuspec

  p.with_metadata do |m|
    m.id            = 'DotNetZip'
    m.version       = ENV['NUGET_VERSION']
    # of the nuget at least
    m.authors       = 'Henrik/Dino Chisa'
    m.description   = 'A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.'
    m.summary       = 'A library for dealing with zip, bzip and zlib from .Net'
    m.language      = 'en-GB'
    m.copyright     = 'Dino Chiesa'
    m.release_notes = "Full version: #{ENV['BUILD_VERSION']}."
    m.license_url   = "https://raw.githubusercontent.com/haf/DotNetZip.Semverd/master/LICENSE"
    m.project_url   = "https://github.com/haf/DotNetZip.Semverd"
  end

  p.no_project_dependencies
end
There.
Glen
@tgp1994
I think I may be having a separate issue as well; despite having p.leave_nuspec set, there aren't any nuspecs left over in the appveyor artifacts.
Henrik Feldt
@haf
Hi there Glen
  1. I think the warnings you mention are for pdb and mdb files, not for the actual dlls
  1. the file list looks good
But you need to set the 'real' framework key, in the spec file I linked you
Just ask if you have any other questions, but as you'll have noticed, I'm based in Europe.
Glen
@tgp1994
@haf Thanks! I was actually able to get it to generate the nuget package files, thankfully! To test it out, I downloaded the newly generated DotNetZip nuget package I was building, and tried to import it into one of the example VB projects in the solution, replacing it with the direct reference to Zip DLL. The NuGet package manager complains that the package does not target the right assembly for that project, so the import fails. I'm concerned that this may imply problems down the line if we were to deploy this NuGet package, since I thought it should import just fine. I was able to import it into a different project I was working on. Should I be concerned that the nuget package isn't compatible with one of the sample projects?
(Also, I apologize to everyone here for hijacking the room and talking about a slightly different project...)
Glen
@tgp1994
I should also add: Since I'm trying to target MonoAndroid with the Android project, it's default target right now is still net40. It seems like I need to conditionally specify in the rakefile what each project is supposed to target, unless there's a better way to do this?
Henrik Feldt
@haf
@tgp1994 I think you need to update how the framework moniker is set inside albacore, in the file I linked
Glen
@tgp1994
@haf Are you referring to the cfg.target property? How would I configure that to be different for each project though?
Henrik Feldt
@haf
I'm saying that since albacore is a build system it could 'know' how to switch that target moniker by itself. The current configuration is good as is; it builds for a given target. Now perhaps there's a need for something orchestrating what exists?
Something that can iterate through the monikers and ensure the settings are OK?
OK = correctly configured in asmver, in build, in nugets pack; for the 'current' buildable moniker.
it's principle is a loop: for moniker in [ 'net40'; 'net45'; ... ] do asmver; build; collect artifacts;
After the loop, merge artifacts
Next step; in a declarative manner, you'd declare monikers and each task type would output one task (or node, or ...) for each of its valid configuration instances.
A valid configuration instance would contain the moniker.
So it depends on how you want to go about; loop and make the build script more imperative or solve it in albacore in a declarative fashion that people will help you maintain over time
Glen
@tgp1994
@haf That would make sense that Albacore could/should know what target it's building for. I take it then that this functionality currently isn't implemented into Albacore? I'm way in over my head at this point and have next to no idea what I'm doing when it comes to Albacore/writing rake files, I think I'll have to open a feature request in the hopes that someone more skilled than I will take on the task.
Henrik Feldt
@haf
@tgp1994 You should probably aim for the other variant then, to just create a loop and create a new symbol for each configuration. Like:
%w|net40 net45|.each do |fw|
   build :"build_#{fw}" do ... end
end
Glen
@tgp1994
@haf Sorry for the constant questions, but like I said I'm in way over my head here and do appreciate your help none the less :) I'm setting up a ruby environment on my FreeBSD machine so I don't spam Github/AppVeyor with commits everytime I make a change to the rakefile. I went through the steps to get bundler (gem install bundler, bundle install) but when I run rake, I get an error saying I apparently have version 11.2.2 even though 10.3.2 is required. Googling led me to find out that I have to run bundle exec rake instead, which only runs for a second or two before exiting, with 0 output. Any idea why it won't produce any output?
Glen
@tgp1994
Update: Actually that was a simple fix, I just gem uninstall rake --version {x} for the conflicting versions so I can run rake by its self now. However, I'm running into an issue now that you and another developer were actually discussing: logary/logary#27 basically I get an error saying LoadError: cannot load such file -- semver/semvermissingerror. You mentioned installing gems as root, which is true - I cannot run gem install or gem uninstall without sudo. Should I just be running as root the whole time?
Glen
@tgp1994
Yet again it looks like I've solved one problem and created another: I installed rvm to get a user ruby environment, so sudo isn't needed any longer. I can now run rake by its self, but when I do, it just outputs project.rb:137: warning: key :include is duplicated and overwritten on line 140 then it doesn't do anything else.
Sigh... Sorry, looks like it's working just fine, but I must have a syntax error in the rakefile. At least I can focus on that now :)
Glen
@tgp1994
@haf Ok, hopefully I have a good problem for you this time. I implemented p.target = 'net20' and got it to build the nuget package, although when imported into vs the package is still targeting a later version of .NET: targeting '.NETFramework,Version=v4.0,Profile=Client' when trying to import the package into a project. Nothing exceptionally unusual in the rake output besides lib\net20 not found, removing from nuspec. Any ideas?
Henrik Feldt
@haf
Can you run with DEBUG=true as env var, and give the nuspec generates, as well as the output from your shell when you unzip the nupkg?