-
Notifications
You must be signed in to change notification settings - Fork 89
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
Embedding Paket into the template #106
Comments
Does this mean no more mono is now needed? |
Yes, when paket works on .net core |
Paket 5.182.0-alpha001 comes with full .net core support - I'll start testing it with SAFE template |
@matthid when invoking |
@theimowski no. fake references paket.core and has no dependency on paket.exe |
Doh, right I forgot about that! This actually means that SAFE template doesn't have any dependency on Paket to spin up the template - we can just remove .paket/paket.exe (magic bootstrapper) completely. Then it's up to the user how one wants to call paket. |
So seems current situation is that thanks to FAKE 5, SAFE Template doesn't really need to bundle paket / paket.bootstrapper. |
As I understand it - if you use FAKE as a global tool, then it just downloads the paket.core assembly and calls restore on that instead shelling out to the paket exe - is that right? I've no problem with this - it seems clean to me. The only questions are:
Anything that simplifies the number of moving parts is a good thing, as long as we're not losing out anywhere. |
Yes, global FAKE is needed - that's what we have in the prerequisites already. |
So how does one update their paket dependencies - adding a new package etc.? |
Not completely accurate. Note this is basically a special feature / improved integration of the "external"
Why not? |
If the .paket folder is longer available, how do people call Paket? |
We discussed this a bit, and for now we want to wait until Paket as global dotnet tool gets stable. Then we can simply suggest users to use that and remove Mono / full .Net from prerequisites |
Ok so as of now Paket dotnet tool is no longer in alpha - this means that we can remove paket bootstrapper from template and instruct people to use Paket as global tool |
the problem is still with proxies. someone needs to fix that for netcore |
right I see, and what about Paket.Restore.targets - should it be still under source control, or can we remove it as well? |
targets file should be committed |
Sooo... is the global tool a Paket or Paket bootstrapper( in magic mode). How do you control version with global tool? Do you expect users to update global tool as often as Paket is released (every 3 hours ;-) )? |
@Krzysztof-Cieslak i already implemententend these points, see https://github.com/enricosada/paket-netcore-testing-as-tool it will install the paket.bootstrapper, if not installled, and run that, like now. bootstrapp another time is a noop If you just need to pin the version, you can also skip |
@theimowski just proxy atm it's the only issue i know. the scenario 2 show a About the target file, yes, need to be committed in the repo.
|
Ok then from template POV let's wait until proxy issue is solved in Paket as dotnet tool |
Decided to remove paket.exe #232 binary from template contents - thanks to embedded Paket in FAKE one can restore packages using only FAKE dotnet tool. In docs we changed a dependency on Full .NET / mono to an optional dependency on Paket - i.e. if someone needs to manipulate packages then needs to install Paket - but we don't force any specific solution for now |
Reopening - there's an issue if someone needs to run |
Fixed by #241 |
Hello, in order to reproduce an issue from Zaid, I had to use SAFE template and install a new library in it But now, how do I run Also, if I run Step to reproduce:
And now I have this error:
|
@MangelMaxime I add dependencies like this
Restore after that seems to work fine too. |
So, it's probably expected that we install If, yes I think https://safe-stack.github.io/docs/quickstart/ should be modified. Instead of
I propose something like
Note the CLI is probably wrong it just for the example |
We already have following in quickstart docs:
Isn't that enough? |
For me no, because I read the documentation and got stuck. Perhaps, because I know that paket is working in the repo but not exposed (FAKE is doing the restoration job for us if I understood correctly). I disagree a bit with this statement:
I understand why you say that. You say it because indeed to run the template out the box it's not needed. But because this is a template people will "always"/often want to modify the dependencies at some point unless the template is matching 100% of their needs (spoiler no template does that ^^). You will always want to upgrade to latest or add a new deps :) I think that if your documentation, made All of that is just a proposition, I think both positions have pros and cons. But, I wanted to share my experience with the template/docs as this is the first time I install it as a user. |
Right, I can see your point. Would you be willing to submit a PR with that change to https://github.com/safe-Stack/docs? |
When #101 is ready, this would mean no longer dependency on full .NET / Mono
fsprojects/Paket#3183
The text was updated successfully, but these errors were encountered: