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

carnix workspace #471

Merged
merged 4 commits into from Apr 25, 2020
Merged

carnix workspace #471

merged 4 commits into from Apr 25, 2020

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Apr 25, 2020

No description provided.

Carnix doesn't properly handle includes for workspace members, this
works around the issue by specifying what should be generated directly
in Cargo.toml.

https://nest.pijul.com/pmeunier/carnix/discussions/46
Currently broken due to the .dSYM folders it generates next to the binaries.

See NixOS/nixpkgs#83488
@grahamc grahamc merged commit bef27f6 into NixOS:released Apr 25, 2020
@LnL7 LnL7 deleted the carnix-workspace branch April 25, 2020 14:38
@@ -2,7 +2,7 @@
name = "ofborg"
version = "0.1.8"
authors = ["Graham Christensen <graham@grahamc.com>"]
include = ["Cargo.toml", "Cargo.lock", "src", "test-srcs", "build.rs"]
include = ["Cargo.toml", "ofborg"] # TODO remove when carnix is fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What needs to be "fixed" in Carnix, and what would be removed? The entire include line? Just the ofborg folder from the includes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at 96639e9, that only contains the workaround. There are 2 issues I noticed.

  1. the includes for a member have a space which means the filter doesn't match anything and nix filters the sources out
  2. specified includes are not relative to the member and declaring nested paths doesn't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants