Use config.toml rather than an environment variable for the Cargo registry #2

Merged
laurent merged 1 commit from bugfix/config-instead-of-env-var-for-cargo into main 2026-01-02 06:54:42 +01:00
Owner

Context

There was an issue with the Cargo registry configuration (/opt/ltfnet/setup-cargo-registry.sh).
Since the script is executed in a sub-process, the export of the CARGO_REGISTRIES_LTFNET_TOKEN is obviously not persisted when the shell that runs the script exits.

Changes

This pull request fixes the above issue by writing the token to the /usr/local/cargo/config.toml file instead.

## Context There was an issue with the Cargo registry configuration (`/opt/ltfnet/setup-cargo-registry.sh`). Since the script is executed in a sub-process, the `export` of the `CARGO_REGISTRIES_LTFNET_TOKEN` is obviously not persisted when the shell that runs the script exits. ## Changes This pull request fixes the above issue by writing the token to the `/usr/local/cargo/config.toml` file instead.
laurent deleted branch bugfix/config-instead-of-env-var-for-cargo 2026-01-02 06:54:43 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
laurent/ci-images!2
No description provided.