Replies: 1 comment
-
@JuergenRB You are right in some ways: The The code you referenced: "augments" the directory some lines further down: And then gets the dlls from there: cake/src/Cake.DotNetTool.Module/DotNetToolContentResolver.cs Lines 110 to 111 in 9828d7b However, your code searches for Now, while So, yes, adding the |
Beta Was this translation helpful? Give feedback.
-
I have a GitLab pipeline / Dockerfile in which a Linux image is loaded. [mcr.microsoft.com/dotnet/sdk:6.0-alpine]
In this image I run cake which installs a tool globally. This cannot be resolved within the cake script.
Adding
ENV PATH="$PATH:/root/.dotnet/tools"
before thedotnet cake
call does solve the problem.I wonder if it is the right way to go, especially since in DotNetToolContentResolver the path to the tools is resolved via ENV:HOME in Linux.
Maybe I am missing something ?
Beta Was this translation helpful? Give feedback.
All reactions