-
Notifications
You must be signed in to change notification settings - Fork 525
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
paket.reference to recognizing github packages in paket.lock file #3064
Comments
I think this is related to the GitHub changes. Even after working around the paket download issue, my builds were still breaking on AppVeyor with an error that the file was not found. At least, I think this is related. If not, I'm happy to open a new issue. |
@panesofglass with the new bootstrapper? |
@forki yes. |
@gdennie I looked at this. What makes you think this would work? you are referencing a github project - not a nuget package. Is this a feature request? |
@forki I reviewed the documentation again, GitHub dependencies. At the time I somehow thought that Thanks for your attention. |
Did you look at https://fsprojects.github.io/Paket/git-dependencies.html#Using-Git-repositories-as-NuGet-source - with git dependencies you can let paket build the nupkgs for you. Also please send improvements to the docs that clarify the problem |
Either I did not notice that or did not recognize it as the defacto solution that it is. The fact that github packages must be built is an obvious but understated distinction from nuget that could use a bit more fanfare. If time permits, I'll see what I can improve in the documentation. Thanks again. |
Hi. I'm fairly new to .NET Core tooling in general and I'm confused about the above discussion. Can someone clarify what the intended use-case is for including git repositories within the Do I need to go through the process of making a NuGet package out of my project before it can be used as a dependency managed by paket? Thanks for any insights! |
I am not a Paket expert, but my understanding is that the Paket GitHub dependencies can only be a single file that is fetched from GitHub. So, if your library is just one See the instructions here for how to reference a single file from GitHub using Paket: https://github.com/xyncro/aether#installation Another option is to use GitHub packages, which might be more convenient for you since you are already using GitHub. I opened this issue about referencing whole GitHub projects. |
The use case here is that Paket would allow DotNet to be used in the same way that NPM empowered NodeJS - we can create a complex ecosystem of interrelated packages that exist as source code only, and which are built at import time, instead of per package. This is one of NPM's greatest strengths - it makes code reuse at the package level trivial. |
with fsprojects#3756 and fsprojects#3064 it is quite clear, that the documentation around adding git repositories as a (usable) dependency isn't all that clear. Which is a pity, because the actual process isn't all that hard and also quite sensible-ish. This change aims to slightly improve the docs and shed some light on this topic because - basically - all that is missing is some basic knowledge about how namespace/package resolution works in fsharp.
Description
The paket.dependencies file is:
Repro steps
paket init
Argu
paket update
(orpaket install
) from VS menu or commandlineExpected behavior
Argu
would now exist as a reference within the project containing the aforementionedpaket.reference
file.Actual behavior
The following error message is display (and is not completely represented in VS Error List when install or update is performed from VS' paket menu):
Known workarounds
clone the projects and manually link them into your solutions...ignoring paket.
The text was updated successfully, but these errors were encountered: