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

Proposed hammer: Prefer ''${ENV_VAR} over ${ENV_VAR} #142

Open
pbsds opened this issue Oct 1, 2023 · 0 comments
Open

Proposed hammer: Prefer ''${ENV_VAR} over ${ENV_VAR} #142

pbsds opened this issue Oct 1, 2023 · 0 comments

Comments

@pbsds
Copy link

pbsds commented Oct 1, 2023

This is for the sake of overrideability

Such a lint/hammer would catch this test case, which is broken:

(mkDerivation rec {
  ...
  BUILD_COMMAND = "production";
  buildPhase = ''
    npm run "${BUILD_COMMAND}"
  '';
}).overrideAttrs (_: {
  BUILD_COMMAND="development";
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants