conflict with task parsing arguments required for go list command #798
-
I was creating a task to build Golang gRPC source files from proto files using the protoc compiler and I had a conflict with Task parsing an argument that needs to be used for a proto:
summary:
Use protoc to build all protofiles into GoLang source code
vars:
PACKAGE_DIR:
# couldn't find a better way to avoid 'task' to parse {{.Dir}} variable reference
sh: echo '{''{''.Dir''}''}'
COMMONDEF:
sh: go list -f '{{.PACKAGE_DIR}}' -m github.com/avenuesec/common
MOVFINDEF:
sh: go list -f '{{.PACKAGE_DIR}}' -m github.com/avenuesec/movfin-contracts In the task above, both My question is, does Task have a way like bash, to declare a string delimited by single quotes and that are not parsed, and only parses strings delimited by double quotes ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
try
Task does not have a way to declare a string as something not to parse. Quoting won't make a difference, as this it's "just yaml". Might be a good feature request though. |
Beta Was this translation helpful? Give feedback.
try
Task does not have a way to declare a string as something not to parse. Quoting won't make a difference, as this it's "just yaml".
Might be a good feature request though.