Closed gmarz closed 9 years ago
Can you run this again? We've had a partial degradation earlier today that may have caused this.
Just ran it again, same issue.
Overlooked something: the https://nugetbuild.cloudapp.net/drops/client/master/NuGet.exe
URL is now https://www.nuget.org/nuget.exe
.
Still running into the same error even when pointing to https://www.nuget.org/nuget.exe. Are you able to reproduce this at all?
Adding @emgarten - this should be a Mono-compatible build, no?
nuget.exe should work on mono, but this isn't something that gets regular testing.
@gmarz is this a recent regression? Do older builds of nuget.exe work for you?
@emgarten yes, this is definitely a recent regression. The earliest I can trace it back to working was 2 days ago: https://travis-ci.org/elastic/elasticsearch-net/builds/67853275. Our build script hasn't changed in months.
I assume it will work with older versions of nuget.exe, but I don't have any on hand to test. Is there a way to pull an older version?
nuget.exe hasn't been updated since April.
You can find older versions in the tools folder of the nupkgs here: https://www.nuget.org/packages/NuGet.CommandLine/
nuget.exe hasn't been updated since April.
Our build script downloads the latest build from https://nugetbuild.cloudapp.net/drops/client/master/NuGet.exe since we prefer to download nuget.exe on the server rather than checking it in to source control, so I'm assuming this is an issue in master.
You can find older versions in the tools folder of the nupkgs here: https://www.nuget.org/packages/NuGet.CommandLine/
Sorry, should have been more clear. Was curious if there was a way an alternative way to download and older verison of nuget.exe (like above) rather than using nuget itself. Not a big deal...I've checked in nuget.exe v2.8.5 into our repo and I'm testing the Travis build now- will keep you posted.
FYI the build passes on the latest stable v2.8.5 https://travis-ci.org/elastic/elasticsearch-net/builds/68212492. So this is indeed an issue in the current trunk.
Okay, this is embarrassing. The issue was that https://nugetbuild.cloudapp.net/drops/client/master/NuGet.exe now redirects to https://api.nuget.org/downloads/nuget.exe.
The curl command was downloading the redirect response, so nuget.exe was essentially a web page. That certainly explains "File does not contain a valid CIL image" :)
Bit of a sneaky issue...appreciate the help here @maartenba and @emgarten. Sorry for wasting your time.
Bah, correction. https://nugetbuild.cloudapp.net/drops/client/master/NuGet.exe returns a 403, and https://www.nuget.org/nuget.exe redirects to https://api.nuget.org/downloads/nuget.exe.
In both cases, curl was downloading the html as nuget.exe. Pointing to https://api.nuget.org/downloads/nuget.exe directly fixes our issue.
Sorry for the confusion.
@gmarz, ok, got it, but how do you solved it? I've installed mono by doing:? sudo apt-get install mono-complet and then following this: https://www.mono-project.com/download/stable/#download-lin 1º is that my monodevelop is totaly broken, just impossible to use; 2º when I try to run "mono file.cs" a got the msg: Cannot open assembly 'test1.cs': File does not contain a valid CIL image. so??...
Hey folks,
Our Travis CI build on Mono has suddenly stopped working: https://travis-ci.org/elastic/elasticsearch-net/builds/68155997#L966
Our build script can be found here. We're downloading the latest binary from https://nugetbuild.cloudapp.net/drops/client/master/NuGet.exe.
Here's the output when I run it from mono in trace mode:
Are we doing something wrong or is this an issue? Happy to provide more info if needed.