Skip to content
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
Closed

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

Thorium opened this issue Oct 23, 2015 · 6 comments

Comments

@Thorium
Copy link
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 [email protected](String message)
at [email protected](Exception _arg3)
at [email protected](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>[email protected](Unit unitVar0) at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc2 action)
at [email protected](ParseResults1 results) at Paket.Program.processWithValidation[T](FSharpFunc2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
at [email protected](Command command, String[] args)
at Paket.Program.main()

@forki
Copy link
Member

forki commented Oct 23, 2015

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

@forki
Copy link
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
Copy link
Member

forki commented Oct 23, 2015

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

@forki
Copy link
Member

forki commented Oct 23, 2015

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

@Thorium
Copy link
Member Author

Thorium commented Oct 23, 2015

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

@Thorium Thorium closed this as completed Oct 23, 2015
@forki forki reopened this Oct 23, 2015
@forki forki changed the title Something wrong with GitHub reference? Give better error message when a file can't be found on a github repo Oct 23, 2015
@forki forki closed this as completed in e5f9782 Oct 23, 2015
@forki
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants