New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give better error message when a file can't be found on a github repo #1162

Closed
Thorium opened this Issue Oct 23, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@Thorium
Member

Thorium commented Oct 23, 2015

paket.dependencies:

source https://www.nuget.org/api/v2

github lodash/lodash lodash.min.js

Response:

C:\myTest>.paket\paket.exe install --verbose
Paket version 2.8.0.0
found: C:\myTest\paket.dependencies
Parsing C:\myTest\paket.dependencies
Resolving packages for group Main:
Locked version resolution written to C:\myTest\paket.lock
Downloading lodash/lodash:d5f51f288121971a06802ad783179f9304ec5093 lodash.min.js to C:\myTest\paket-files\lodash\lodash\lodash.min.js
Paket failed with:
Could not download from https://raw.githubusercontent.com/lodash/lodash/d5f51f288121971a06802ad783179f9304ec5093/lodash.min.js
Message: One or more errors occurred.
StackTrace:
at Paket.Utils.downloadFromUrl@215-5.Invoke(String message)
at Paket.Utils.downloadFromUrl@208-4.Invoke(Exception _arg3)
at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@851.Invoke(AsyncParams1 args) --- End of stack trace from previous location where exception was thrown --- at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result1 res)
at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync1 computation, FSharpOption1 timeout)
at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync1 computation, FSharpOption1 timeout, FSharpOption1 cancellationToken) at Paket.InstallProcess.createModel(String root, Boolean force, DependenciesFile dependenciesFile, LockFile lockFile, FSharpSet1 packages)
at Paket.InstallProcess.InstallIntoProjects(InstallerOptions options, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList1 projects) at <StartupCode$Paket-Core>.$PublicAPI.Install@148.Invoke(Unit unitVar0) at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc2 action)
at Paket.Program.handler@290-10.Invoke(ParseResults1 results) at Paket.Program.processWithValidation[T](FSharpFunc2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
at Paket.Program.processCommand@61-1.Invoke(Command command, String[] args)
at Paket.Program.main()

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 23, 2015

Member

where is the correct resource? where do you expect paket to download that file?

Member

forki commented Oct 23, 2015

where is the correct resource? where do you expect paket to download that file?

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 23, 2015

Member

If I look at https://github.com/lodash/lodash/ then there is no lodash.min.js in the root

Member

forki commented Oct 23, 2015

If I look at https://github.com/lodash/lodash/ then there is no lodash.min.js in the root

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 23, 2015

Member

lol lodash/lodash@d5f51f2 removed that file ;-)

Member

forki commented Oct 23, 2015

lol lodash/lodash@d5f51f2 removed that file ;-)

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 23, 2015

Member

So in this case there is nothing we can do, but to give a good error message.

Member

forki commented Oct 23, 2015

So in this case there is nothing we can do, but to give a good error message.

@Thorium

This comment has been minimized.

Show comment
Hide comment
@Thorium

Thorium Oct 23, 2015

Member

Ok thanks, didn't expect that! :-D

Member

Thorium commented Oct 23, 2015

Ok thanks, didn't expect that! :-D

@Thorium Thorium closed this Oct 23, 2015

@forki forki reopened this Oct 23, 2015

@forki forki changed the title from Something wrong with GitHub reference? to Give better error message when a file can't be found on a github repo Oct 23, 2015

@forki forki closed this in e5f9782 Oct 23, 2015

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 23, 2015

Member

it will now show the 404:

image

Member

forki commented Oct 23, 2015

it will now show the 404:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment