Open nesimer opened 1 month ago
Same issue, the change mentioned above does allow everything to work as it should.
@Cammisuli do you have an opinion about this? โบ๏ธ
Hmm.. I'd have to go over the code and see whats up. From what was described, it makes sense, but I just want to make sure its safe.
@Cammisuli, have you had a chance to think about it ๐ ?
I can also take a closer look for myself and see about a safe fixif you don't have time ๐
If we can confirm that these instructions are still good, then I say its fine: https://nx.dev/recipes/nx-release/publish-rust-crates
Hi @Cammisuli,
I've recently been using my rust binaries in a monorepo NX context via monodon. My current project contains โclassicโ JS/TS applications with associated โe2eโ apps.
Since each of my apps is independent of the others, releases are made with this configuration:
๐ nx.json
But as soon as I want to make an
nx release --project=[my_rust_bin] patch
, I get this console output:console output after
nx release --verbose --project=[my_rust_bin] patch
After a little research, it seems to me that it would come from here:
๐
packages/rust/src/generators/release-version/release-version.js
(line 203)When I set
false
instead ofoptions.releaseGroup.projectsRelationship === 'independent'
, my release goes โfineโ.This โhackโ is temporary and not complete, but shouldn't we dig deeper and allow the proper use of the release command in a case like mine (with โindependentโ) because it is relatively blocking?
Thanks