Replies: 1 comment 1 reply
-
`docker-compose build --build-arg MY_BUILD_ARG=$SOME_VAR some-service`
`ERROR: No such service: MY_BUILD_ARG=some_var_value`
You should have included how you set SOME_VAR
In this case you're probably running into Cartesian Product expansion, see https://fishshell.com/docs/current/language.html#combining-lists-cartesian-product
Note that you can always run your command with `echo ` prepended, to check the commandline after variable expansion.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wdfinch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm really enjoying using fish but there's one command I can't seem to run in fish. I'm trying to run the following in fish:
docker-compose build --build-arg MY_BUILD_ARG=$SOME_VAR some-service
When I do this I get the output:
ERROR: No such service: MY_BUILD_ARG=some_var_value
I've tried wrapping
MY_BUILD_ARG=$SOME_VAR
in double-quotes which starts the build process. However, it seems that the variable fails to be substituted correctly and in turn, the build fails.Any help on how I can do this?
Beta Was this translation helpful? Give feedback.
All reactions