-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
env: is not being expanded, so stuff like ~ isn't working there #185
Comments
Hi @Ilyes512, We had a chat room in the past here (you'd need to sign up on https://gophers.slack.com first). It's still there, but I removed the links from the GitHub repo and site because I not always had time to answer questions quickly, and also it's not very searchable. GitHub issues suits better, IMHO. About the issues you've being having... that's happening because Task isn't currently expanding values on Even then, you still won't be able to reference other environment variables add to |
Keep in mind variable expansion works for |
Yes, I was just now playing with vars instead and I realise I wouldn't actually use env variables that much. I also noticed I can use vars to "build" env variables when needed ie: vars:
HOME: {sh: "echo $HOME"}
env:
HOME: "{{.HOME}}/foobar" BTW I am already am a member of gophers :) |
This might be it's own issue but I was wondering what your thought are about adding this:
If Minikube is not running it would stop execution with:
hmm, but then again, having an easy to understand, not bloated task runner, is very nice as well. Could probably come up with 10's of idea's. A more generic way would maybe be a |
@Ilyes512 Yeah, I try not to add lots of features, but keep Task concise when possible. For now, you can use Bash to check if the executable is available, and do nothing if don't. (The commands inside |
@andreynering Maybe home expanding is missing for includes too no ? |
Expanding includes:
shared: ~/.task/Taskfile.yml |
Task version: 2.4.0 OS: Darwin (MacOS)
This project really looks promising, and I would really like to use this instead of
Make
except I am running into some problems.I have the fallowing example task file. For the below test I ran this first to have a test file:
$ echo 'hello world' > ~/testfile.txt
:I get the fallowing output (minus the
-----> expected
appended) when I run$ task test
:When I set an env variable like this (and I don't even use it):
It will error with:
~
and${HOME}
behave correctly?Another issue I saw about almost the same thing: #74 It also mentions a "chat". Is this still in use, and if so, it should be documented somewhere? (would expect the readme to mention it).
BTW I have tried variables as both
${FOOBAR}
as well as$FOOBAR
(so minus the{
and}
).Thanks in advance :)
The text was updated successfully, but these errors were encountered: