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

Switch --no-cache Doesn't Appear to Prevent Cache #508

Closed
martinpeck opened this issue Apr 26, 2023 · 1 comment · Fixed by #790
Closed

Switch --no-cache Doesn't Appear to Prevent Cache #508

martinpeck opened this issue Apr 26, 2023 · 1 comment · Fixed by #790
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@martinpeck
Copy link

When running the following command...

devcontainer build --no-cache --log-level trace | cat

... I am still seeing CACHED in the output when devcontainer features are being installed (snippet from logs)...

#22 [dev_containers_target_stage 11/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=jq-likes_9,target=/tmp/build-features-src/jq-likes_9     cp -ar /tmp/build-features-src/jq-likes_9 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/jq-likes_9  && cd /tmp/dev-container-features/jq-likes_9  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/jq-likes_9
#22 CACHED

#23 [dev_containers_target_stage  7/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=pre-commit_7,target=/tmp/build-features-src/pre-commit_7     cp -ar /tmp/build-features-src/pre-commit_7 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/pre-commit_7  && cd /tmp/dev-container-features/pre-commit_7  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/pre-commit_7
#23 CACHED

#24 [dev_containers_target_stage  2/15] RUN mkdir -p /tmp/dev-container-features
#24 CACHED

#25 [dev_containers_target_stage  6/15] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=azure-cli-persistence_5,target=/tmp/build-features-src/azure-cli-persistence_5     cp -ar /tmp/build-features-src/azure-cli-persistence_5 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/azure-cli-persistence_5  && cd /tmp/dev-container-features/azure-cli-persistence_5  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/azure-cli-persistence_5
#25 CACHED

Am I misusing or misunderstanding the --no-cache switch, or is the switch not functioning correctly?

@chrmarti
Copy link
Contributor

chrmarti commented May 2, 2023

Could you append the full log?

@chrmarti chrmarti self-assigned this May 2, 2023
@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants