Closed
Description
Hi! I'm trying to build this with nix to test it out for a couple of fun scenarios/ideas.
I'm hitting this when building, with what I think is latest nightly:
git-repo-manager-unstable> error[E0015]: cannot call non-const fn `std::option::Option::<&str>::unwrap_or` in constants
git-repo-manager-unstable> --> src/provider/github.rs:13:39
git-repo-manager-unstable> |
git-repo-manager-unstable> 13 | option_env!("GITHUB_API_BASEURL").unwrap_or("https://api.github.com");
git-repo-manager-unstable> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
git-repo-manager-unstable> |
git-repo-manager-unstable> = note: calls in constants are limited to constant functions, tuple structs and tuple variants
git-repo-manager-unstable> error[E0015]: cannot call non-const fn `std::option::Option::<&str>::unwrap_or` in constants
git-repo-manager-unstable> --> src/provider/gitlab.rs:12:68
git-repo-manager-unstable> |
git-repo-manager-unstable> 12 | const GITLAB_API_BASEURL: &str = option_env!("GITLAB_API_BASEURL").unwrap_or("https://gitlab.com");
git-repo-manager-unstable> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
git-repo-manager-unstable> |
git-repo-manager-unstable> = note: calls in constants are limited to constant functions, tuple structs and tuple variants
and if I nix derivation show ${grm} | grep rust-nightly-minimal
then I see amongst the output:
/nix/store/6a1h550mcqhm12m7x8cbs6bs6qmbm7qy-rust-nightly-minimal-2023-04-28.drv
Any advice? Or if you know the last nightly that worked I might be able to pin it for now, I don't think it's recorded in the repo.
Metadata
Metadata
Assignees
Labels
No labels