Alex Couture-Beil
Alex Couture-Beil
consider an Earthfile: ``` VERSION 0.8 middle: FROM alpine RUN echo hello from middle ARG a COPY (./subdir+subtest/file --a=$a) . RUN cat file > otherfile SAVE ARTIFACT otherfile test: FROM...
it looks like there's a bug with `--pass-args`, because when I change it to: ``` VERSION 0.8 middle: FROM alpine RUN echo hello from middle ARG a COPY --pass-args ./subdir+subtest/file...
also interesting to note that changing the `RUN echo hello from subtest` to `RUN env | grep a=` fails (showing that `a` is never set prior to the `ARG a`...
`--pass-args` is only needed when calling targets in a different Earthfile; There's some details about it under https://docs.earthly.dev/docs/guides/build-args#passing-argument-values-to-targets
I'm not even sure if it works with args (rather than platform), e.g. ``` VERSION 0.8 echo: FROM alpine ARG foo ARG bar RUN echo $foo > "file.$bar" SAVE ARTIFACT...
it's interesting to note that ``` oops-pull: FROM earthly/dind:alpine-3.18 WITH DOCKER --pull alpine:3.18 RUN false END ``` will present an interactive shell to the user when run with `earthly -Pi...
That's a great observation -- I like it! This might be a bit of an unexpected change to some users -- I wonder if this would need to wait until...
> however this path is blocked access I agree that it sounds like a bug; we should fix how earthly deteremines the installation path. The ability to override it via...
> output it to the screen This already exists, but might be a bit hidden/undocumented: ``` $ earthly bootstrap --no-buildkit --source zsh #compdef _earthly earthly function _earthly { autoload -Uz...
@eliottwiener-gridunity I'm not a zsh user; however according to https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org it's correct syntax.