Should not run `nix-build` unconditionally
See original GitHub issueI’d like to be able to use cachix-action
when testing a non-Nix project, but it appears to run nix-build
unconditionally. Ideally, IMO, the action should install cachix
and enable the named cache, but should not assume that the current project is to be built.
https://github.com/purcell/package-lint/blob/nix-actions/.github/workflows/test.yml
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Difference between nix-shell and "nix run"? - NixOS Discourse
For 2.3, no, run does not read from a shell.nix , as the content of a shell.nix is not meant to be built....
Read more >How to Learn Nix, Part 20: My first Nix bug - Ian Henry
Why would you pick one that doesn't work? The whole point of Nix is to make reproducible builds, isn't it? This is not...
Read more >Nix integration - The Haskell Tool Stack
the build should fail if you haven't specified all the dependencies in the packages: section of the stack.yaml file, even if these dependencies...
Read more >Coding conventions | nixpkgs
Building lists conditionally should be done with lib.optional(s) instead of using ... For instance, it should be all-packages.nix , not allPackages.nix or ...
Read more >4.7. Package setup hooks - gsc.io
Nix itself considers a build-time dependency as merely something that should previously be built and accessible at build time—packages themselves are on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could you try with:
I also have a use for this if I understand correctly. I nix-install a few things and then run some tests in a shell script with emacs my small (for now) repo.
Since nix-build is called I get an error, but I’m imagining there’s a way to just call my shell script in a nix expression that would make this work okay.