Open bbigras opened 2 weeks ago
Cc @osiewicz who added the dependency back at #19576
Note: the error happens when running https://github.com/zed-industries/zed/blob/main/script/generate-licenses
The script does pass locally for me as well as on CI, so I'm not sure what's up.
Nixpkgs uses a newer version of cargo-about (0.6.4) than what's installed by generate-licenses
(0.6.1), that's the only difference on top of my mind
Use the allowBroken option If the license information of these packages is not important, you can use the allowBroken option when building Nix to ignore these errors. You can add the --allow-broken parameter to the command line, or set it in the Nix configuration:
nixpkgs.config.allowBroken = true;
In addition, homebrew is not very friendly to Mac. You can choose Servbay to try, which is more professional than homebrew on Mac
None of that is relevant to the issue at hand
Nixpkgs uses a newer version of cargo-about (0.6.4) than what's installed by
generate-licenses
(0.6.1), that's the only difference on top of my mind
That doesn't seem to be it, running generate-licenses with cargo-about 0.6.4 outside of Nix works fine. Instead, it looks like the problem is cargo-about trying to fetch the LICENSE file directly from the crate's respective git repository, which it cannot do in an isolated (network-less) build environment. I wonder why it attempts to do so at all though, as the license for these crates is already specified in zed-licenses.toml.
Upstream issue: https://github.com/EmbarkStudios/cargo-about/issues/246
Check for existing issues
Describe the bug / provide steps to reproduce it
While trying to build 0.159.5 on nixos, I get:
Environment
Zed: v0.158.2 (Zed) OS: Linux Wayland nixos 24.11 Memory: 31.1 GiB Architecture: x86_64 GPU: AMD Radeon RX 6700 XT (RADV NAVI22) || radv || Mesa 24.2.4
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log