Replies: 4 comments 2 replies
-
Basically what is pname and how can I make crane shut-up about it 😄 |
Beta Was this translation helpful? Give feedback.
-
Link to a project could help. It seems to me you're doing something fundamentally wrong, but it's hard to say what exactly. |
Beta Was this translation helpful? Give feedback.
-
Crane will try to guess a value for you (using the contents of Cargo.toml) if possible. Set it to whatever non-null/non-empty value you want |
Beta Was this translation helpful? Give feedback.
-
Oh I was forgetting the |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have Crane setup for a couple of my other single-crate projects and those have gone smoothly, but setting it up for my largest project that is workspace has been unpleasant.
Mainly surrounding
pname
. I do not know what this does but as far as I can tell I can just set it to whatever and nothing changes. But even though it doesn't matter, I have been hitting errors about it all day. Even adding thepname
field to the derivations doesn't always fix the issue.In my setup the only thing I care about are the executable and shared library outputs. To do this without nix, just cd in and run
cargo build
. It seems like it is trying to read the workspace toml to find some package name. But adding the fields lists in the manual doesn't fix anything.I had it working at one point, but then when I followed the artifact reused manual page I now hit it again and haven't been able to fix it.
Beta Was this translation helpful? Give feedback.
All reactions