You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file is the same which i have in my home directory ~/.cargo/config.toml. There also the file credentials.toml with this content:
[registries.testregistry]
token = "token_blabla"
How can i put the credentials.toml into my bazel build environment that i can build my project with the own dependencies?
I have try to set the --action_env=CARGO_REGISTRIES_TESTREGISTRY_TOKEN=blablablub but it does not work -> 401 ....
Do anybody have an idea what is my problem or what can i do?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i'm trying to use own crates from a own cargo repository on a Sonatype Nexus.
I use crate_universe and from_cargo in my MODULE.bazel (bzlmod - Bazel Version 8.2.1).
If i add a own crate into the Cargo.toml as dependency, my bazel build failed!
The reason is 401 Unauthorized.
I apply a config.toml into from_cargo with the parameter cargo_config, in which i set my registry and the global credential provider.
This file is the same which i have in my home directory ~/.cargo/config.toml. There also the file credentials.toml with this content:
How can i put the credentials.toml into my bazel build environment that i can build my project with the own dependencies?
I have try to set the --action_env=CARGO_REGISTRIES_TESTREGISTRY_TOKEN=blablablub but it does not work -> 401 ....
Do anybody have an idea what is my problem or what can i do?
Beta Was this translation helpful? Give feedback.
All reactions