Cargo fails to detect environment variable is newly set and rebuild if the environment variable is set in config.toml
#13280
Labels
A-environment-variables
Area: environment variables
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
The problem can be only reproduced if the environment variable is "not set" in the first run, and "set" in the second run.
Steps
Incorrect behaivor
.cargo/config.toml:
src/main.rs:
run these commands:
Correct behaivor if we do not use a
config.toml
src/main.rs:
run these commands:
Correct behaivor if we change the environment variable from a value to another value
.cargo/config.toml:
src/main.rs:
run these commands:
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: