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

Don't set APP_CACHE_DIR if --no-cache is passed with apps dev build #1603

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

fumblehool
Copy link
Contributor

Description

It mounts the/cnb/cache directory for caching the build.
This fails to build in Github Actions since user doesn't have permission to write to /
Error message is : Error: failed to chown volumes: chown /cnb/cache: operation not permitted

doctl apps dev build has a flag --no-cache which disables the caching docs-link.
But this is not being used for buildpack-based builds.

This PR fixes this behavior to disable caching when --no-cache is set.

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andrewsomething andrewsomething merged commit f7751f3 into digitalocean:main Oct 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants