Skip to content

Unable to build build-scripts, fails with permission denied #203

Answered by ipetkov
TheNeikos asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the report @TheNeikos !

One thing I noticed about your flake is that the buildDepsOnly closure is not building the entire workspace, while the clippy derivation builds all crates with all features. Although you likely don't want to be doing this (for caching efficiency, changing the flags will require cargo to rebuild parts of the dependency closure which won't get cached) it seems to be tickling the actual bug. Here's what I think is happening

  1. deps-only closure just builds the root crate, which likely depends on memchr somewhere
  2. this derivation builds memchr's build script, which is writable and executable, and runs it with no problem
  3. the subsequent derivations start building…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ipetkov
Comment options

@TheNeikos
Comment options

@ipetkov
Comment options

Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants