Access system enivronment variables cross-platform? #808
Answered
by
keith-miller
keith-miller
asked this question in
Q&A
-
Hello, I was wondering if I can access system enivronment variables like $GOPATH/%GOPATH% in a Taskfile. I have a task that looks like this:
but this isn't working. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
keith-miller
Jul 13, 2022
Replies: 2 comments
-
Finally figured out that I can do this:
Still has issues on Windows though, even though the path is correct |
Beta Was this translation helpful? Give feedback.
0 replies
-
Duh, I needed quoted for the back slashes in the path lol
Works on MacOS and Windows now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andreynering
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duh, I needed quoted for the back slashes in the path lol
Works on MacOS and Windows now.