Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repro-missing-cargo-env

Minimal reproduction for missing CARGO_PKG_LICENSE, CARGO_PKG_README, and PROFILE environment variables when building under Buck2 via buckal-bundles.

Steps

  1. Migrate to Buck2:

    cargo buckal migrate
  2. Build with Buck2:

    buck2 build //:repro-missing-cargo-env
  3. Observe the build script panic:

    Missing expected environment variable "CARGO_PKG_LICENSE"
    

Expected

The build should succeed. Cargo always sets CARGO_PKG_LICENSE, CARGO_PKG_README, and PROFILE for build scripts, even when empty.

Verify with Cargo

cargo build   # succeeds
cargo run     # prints: License: MIT, Readme: README.md, Profile: debug

About

Minimal repro: missing CARGO_PKG_* env vars in buck2 build scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages