-
Notifications
You must be signed in to change notification settings - Fork 526
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
[WIP] repo level tools #2938
[WIP] repo level tools #2938
Conversation
7006881
to
0cd3470
Compare
added another version for |
93b3b10
to
337c6ac
Compare
Updated the demo repository after last time feedback, just clone and follow the README https://github.com/enricosada/paket-repotool-testing/ |
337c6ac
to
a217f61
Compare
7e3193f
to
68b4b21
Compare
Updated the demo repository (tagged as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the Twitter post I spotted this deletion which should be removable :)
src/Paket.Core/Paket.Core.fsproj
Outdated
@@ -2200,4 +2201,4 @@ | |||
</Choose> | |||
<Import Project="..\..\packages\NETStandard.Library\build\NETStandard.Library.targets" Condition="Exists('..\..\packages\NETStandard.Library\build\NETStandard.Library.targets')" Label="Paket" /> | |||
<Import Project="..\..\packages\NETStandard.Library\build\$(__paket__NETStandard_Library_targets).targets" Condition="Exists('..\..\packages\NETStandard.Library\build\$(__paket__NETStandard_Library_targets).targets')" Label="Paket" /> | |||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this happen :(?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different newline at EOF.
23e2e2d
to
2067f0e
Compare
97e2211
to
dff7258
Compare
@enricosada Looks pretty ready to me. How about we just release this in a beta? |
allow escape " with \"
…ause is a known path
f3d521b
to
56bddad
Compare
rebased @matthid sort of done. let me split global tools and repo tools. |
This could be useful for ootb support for dotnet tools in FAKE, see fsprojects/FAKE#2169 (comment) @enricosada I might finish this (as it basically looks good to me), any objections regarding syntax? For me, this also solves #3623 as I can just add paket and let fake restore paket (/cc @Krzysztof-Cieslak) |
Closing some good things in the PR (lot of learning too for myself :D) but .net local tool are the way forward |
fix #2919
to test it, an example in https://github.com/enricosada/paket-repotool-testing
aligned to this PR wip
paket install
tools from nupkgspaket restore
tools from nupkgspaket add-tool FAKE
//install in repo: add to deps + installrepotool enable
/disable
=>paketrt e
(orenable
),paketrt d
(ordisable
)paket add-tool FAKE -G
//install globallyinit
andrestore
if not found to install helpers andpaketg
paketg add-tool FAKE
instead of directly use thatpaket.dependencies
paket add-tool -G
a good idea (as alias forpaketg add-tool
), or just drop it and ask directly to usepaketg
?tools/*.exe
(old directory structure)tools/net*/*.exe
allowtools/netcoreapp*/{pkgname}.dll
tools/netcoreapp*/{name}.dll
if{name}.deps.json
exists in same dirinstall
,restore
)PAKET_REPOTOOL_PREFFERED_RUNTIME
env var)net4*
(with mono on unix/osx)netcoreapp2*
with dotnet, as fddpaket
wrapper in Mainbin
dir if a.paket/paket.exe
existsadd helper script to addpreferred helper is globalbin
dir to PATH (windows).paket-files\bin\paketrt e
paketrt
. but a paket command exists too to do it withoutpaketrt
add helper script to addskipped powershell for this releasebin
dir to PATH (powershell).. paket-files\bin\add_to_PATH.ps1
add helper script to sourcepreferred helper is globalbin
dir to PATH (linux/osx).. <(./paket-files/bin/paketrt e)
paketrt
. but a paket command exists too to do it withoutpaketrt
support configuration by xml in nupkg (for alias mostly)skipped until global tools stabilizepaket-files/paket-repotools.csv
instead of readpaket.lock
(allow in a backward compatible way a different verison of paket to read installed tools info)paketrt
with empty args =>whoiam