andreynering
Convert string variable to integer
Hi @Rots,
Yes, take a look at this page: https://go-task.github.io/slim-sprig/conversion.html
3 replies
Watching golang source w net/http server
Hi @dNaszta,
Task's watcher is not 100% polished, so it may fail in some scenarios.
I suggest you to try dedicated tools like Air (https://github.com/air-verse/air). Both tools can be used together.
4 replies
Parentheses in commands
@ibragdzh This page has some explanation on how to declare multi-line string in YAML: https://yaml-multiline.info/ Using
|
is probably what you want.9 replies
Is it possible to to specify a Go version in a Taskfile?
Hi @HighDesertStorm,
Your Taskfile will call whatever
go
binary is available in your PATH
. You can call go version
to know its version. If you want a different version, you'll need to install it yourself.5 replies
variable for current taskfile?
Hi @trim21,
Take a look at the special variables, specially
ROOT_DIR
, TASKFILE_DIR
and USER_WORKING_DIR
.
https://taskfile.dev/reference/templating/#special-variables3 replies
Using sh to generate a map?
Hi @JonZeolla,
I suggest you do make a comment on https://github.com/go-task/task/issues/1585 with your proposal.
There, it would be less likely to be forgotten, as Discord is more for questions than feature requests.
2 replies
Required input does not prevent dependencies from running and dependencies do not share variables
Hi @Bluestopher,
1. I would move
DATE
and GIT_HASH
as global variables, and just reference them on the calls with DATE: '{{.DATE}}'
2. You might want to create an issue about this so we can think about changing this behavior in the future.3 replies
Should the 'generates' folders be automatically excluded from 'sources' evaluaton?
Does the date/time affect the output of the checksum checker?What we do check is if there are any files from
generates
available. If not, we assume is wan't run and run again.5 replies
Static context issues
Hi @Leon,
I'm actually not sure if we would want to add that behavior. That would improve the code complexity and add room for new bugs.
Keep in mind that we need to take concurrency into account when implementing things, and sharing state between tasks might not play well with tasks running concurrently.
2 replies