Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should not run `nix-build` unconditionally

See original GitHub issue

I’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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

domenkozarcommented, Dec 19, 2019

Could you try with:

- uses: cachix/cachix-action@releases/v3
        name: mycache
        skipNixBuild: true
codygmancommented, Nov 21, 2019

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.

Read more comments on GitHub >

github_iconTop 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 -
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found