Skip to content

Pass all environment variables to vendoring#3964

Merged
UebelAndre merged 2 commits intobazelbuild:mainfrom
patrickmscott:patrick/crates-vendor
Apr 16, 2026
Merged

Pass all environment variables to vendoring#3964
UebelAndre merged 2 commits intobazelbuild:mainfrom
patrickmscott:patrick/crates-vendor

Conversation

@patrickmscott
Copy link
Copy Markdown
Contributor

I have been struggling for a long time with getting private registries and git repositories to work with vendoring. CARGO_REGISTR* is currently broken due to a typo. Private git repositories don't work because the ssh auth socket is not forwarded. And custom .ssh/config blow up if all env variables referenced in the config are not forwarded.

There is no great way to forward all the right environment variables. This does not appear to affect repinning directly in bzlmod.

@patrickmscott patrickmscott force-pushed the patrick/crates-vendor branch 4 times, most recently from 1a507c6 to 862c070 Compare April 14, 2026 20:10
I have been struggling for a long time with getting private registries
and git repositories to work with vendoring. CARGO_REGISTR* is currently
broken due to a typo. Private git repositories don't work because the
ssh auth socket is not forwarded. And custom .ssh/config blow up if all
env variables referenced in the config are not forwarded.

There is no great way to forward all the right environment variables.
This does not appear to affect repinning directly in bzlmod.

Explicitly remove OUTPUT_BASE which is set in CI.
@patrickmscott patrickmscott force-pushed the patrick/crates-vendor branch from 862c070 to db4490b Compare April 14, 2026 20:11
Copy link
Copy Markdown
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we can't or don't strip environment on windows, I suppose it's fair to relax the restriction on unix systems. Thanks!

@UebelAndre UebelAndre added this pull request to the merge queue Apr 16, 2026
Merged via the queue into bazelbuild:main with commit 3357b18 Apr 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants