Skip to content
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

Autoskip - Autoskip fails target depends on a LET/SET argument #3996

Closed
idodod opened this issue Apr 8, 2024 · 1 comment
Closed

Autoskip - Autoskip fails target depends on a LET/SET argument #3996

idodod opened this issue Apr 8, 2024 · 1 comment
Assignees
Labels
type:bug Something isn't working

Comments

@idodod
Copy link
Contributor

idodod commented Apr 8, 2024

What went wrong?

When referencing a target with path that should be expanded from a LET statement, the path is not properly expanded.

VERSION 0.8

test:
    FROM alpine
    LET path_to_target="subdir"
    BUILD ./$path_to_target+some-target

Run earthly --auto-skip +test

Get

Error: auto-skip is unable to calculate hash for +test: target "test" not found

What should have happened?

Other Helpful Information

The command should have succeeded.
Note, if the LET statement is changed to ARG , the example works.

Additionally, it also seems the error message should state some-target was not found instead of test

@idodod idodod added the type:bug Something isn't working label Apr 8, 2024
idodod added a commit that referenced this issue Apr 10, 2024
@idodod
Copy link
Contributor Author

idodod commented Apr 10, 2024

will be included in next release (v0.8.8)

@idodod idodod closed this as completed Apr 10, 2024
@idodod idodod self-assigned this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant