-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Tool resolving in Frosting tasks #3038
Comments
This is caused by working directory and probably a duplicate of #2904 |
@pascalberger Can't reproduce. I'm closing the issue. |
I'll add a repro repository later |
Here's a repository where it can be reproduced: https://github.com/pascalberger/cake-gh-3038 For the reproduction to work it is important that GitVersion is not available on the system (e.g. installed as .NET global tool or through Chocolatey). In this case the behavior can still be seen when running with diagnostic verbosity where it is visible that global instance is called when running from a task instead of the version installed in the build script (see this GitHub actions run: https://github.com/pascalberger/cake-gh-3038/runs/1758010781?check_suite_focus=true#step:5:36). |
I can repro on my machine:
|
Error is triggered by setting working directory and might be fixed with #3048. |
Fixed with #3048 |
Because of cake-build/cake#3038 the tools folder isn't being accessed correctly, but this can use the version of the NuGet package installed by the test projects themselves.
🎉 This issue has been resolved in version v1.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
What You Are Seeing?
I can restore a .NET Tool using the Cake.DotNet.Module and then call it in the build context constructor. But when calling the same tool in the Setup or a task an error is thrown:
What is Expected?
It should be possible to call .NET Tools also from setup or tasks.
What version of Cake are you using?
1.0.0-rc0002
Are you running on a 32 or 64 bit system?
64-Bit
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)
Create a new Froasting project and setup the host like this:
Call
context.GitVersion();
in the constructor of theBuildContext
classCall
context.GitVersion();
in a taskThe text was updated successfully, but these errors were encountered: