-
Notifications
You must be signed in to change notification settings - Fork 8
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
Buildpack reusing module layer even when the value of env vars change #128
Comments
Similar issue in go: paketo-buildpacks/go-build#88 |
How would |
See paketo-buildpacks/npm-install#153 (comment) for ideas |
In particular |
For posterity, here's a sample output of
See https://classic.yarnpkg.com/en/docs/envvars/, it includes basic yarn config + npm config passed down via |
It looks like the buildpack does not consider env variables in its decision to reuse the module layer or not. For e.g., a user should be able to pass
NODE_ENV=development|production
and influence the actions of the yarn-install command. If the env vars are not considered in the decision to reuse layer,yarn install
wouldn't be run again with the new env vars context.Logs while using this app with the nodejs metabuildpack. See relevant "Yarn Install" section. The buildpack is
Reusing cached layer /layers/paketo-buildpacks_yarn-install/modules
though the value ofmyenv
has changed in the second build.The text was updated successfully, but these errors were encountered: