Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9bd7d4f
Test PyPI and RubyGems vendored mode beside a Bazel hub on real Bazel
mikolalysenko Nov 23, 2026
9c9f202
Decline PyPI and RubyGems vendored mode where a Bazel hub reads the lock
mikolalysenko Nov 23, 2026
2d652c5
Close three ways a vendored run could still write a file a Bazel hub …
mikolalysenko Nov 23, 2026
9a022a8
Decline a vendored run where a hub reads a parent file or is in doubt
claude Nov 24, 2026
6005d87
Test a gem committed for a Bazel hub and named by a relative file: URL
mikolalysenko Nov 24, 2026
3cb7610
Vendor a gem for a Bazel hub as its archive, named by a relative file…
mikolalysenko Nov 24, 2026
103352a
Merge the declines' branch into vendored gems for a Bazel hub
mikolalysenko Nov 24, 2026
dd2651e
Close six gaps of a gem vendored for a Bazel hub that a review found
mikolalysenko Nov 24, 2026
2e0f2d3
Test what vendored mode does for a NuGet package of a rules_csharp hu…
mikolalysenko Nov 20, 2026
89f7310
Make vendored mode work for a NuGet package of a rules_csharp hub, or…
mikolalysenko Nov 24, 2026
af5dd83
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 24, 2026
fadf0e9
Keep the block of a rules_csharp hub right through an undo, a later p…
mikolalysenko Nov 24, 2026
ac313c0
Merge remote-tracking branch 'origin/main' into bazel-guard/vendored-…
mikolalysenko Nov 24, 2026
66d9cd1
Merge remote-tracking branch 'origin/main' into bazel-guard/vendored-…
mikolalysenko Nov 24, 2026
5d958bc
Build the NuGet hub tests on Windows
mikolalysenko Nov 24, 2026
dd8d1c4
Merge commit '66d9cd10395bd73a2d4dcc40af4d8f99629d0d7e' into bazel-ve…
mikolalysenko Nov 24, 2026
23398b6
Accept either unseen repository where a Cargo flow comments out the i…
mikolalysenko Nov 24, 2026
12e2edb
Accept either unseen repository where a Cargo flow comments out the i…
mikolalysenko Nov 24, 2026
f3e5623
Hold the unseen repository to Bazel's own words, and say so in the docs
mikolalysenko Nov 24, 2026
c5d6d84
Hold the unseen repository to Bazel's own words, and say so in the docs
mikolalysenko Nov 24, 2026
30cb8cc
Merge main into bazel-vendored/nuget-feed-block
claude Nov 25, 2026
ec60674
Merge remote-tracking branch 'origin/main' into bazel-guard/vendored-…
mikolalysenko Nov 25, 2026
938a43e
Merge commit 'ec60674a1186f30042cc073bab4b8991fbe3050e' into bazel-ve…
mikolalysenko Nov 25, 2026
8d6f447
Merge main into bazel-vendored/nuget-feed-block
claude Nov 25, 2026
4fe3b14
Pass over a WORKSPACE file where the checkout names Bazel 9 or later
mikolalysenko Nov 25, 2026
b84835d
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 25, 2026
49b963e
Merge remote-tracking branch 'origin/main' into bazel-guard/vendored-…
mikolalysenko Nov 25, 2026
6b67c81
Hold the off switch and the VEX answer to a NuGet package vendored fo…
mikolalysenko Nov 25, 2026
7bf9e3c
Merge commit '49b963e3dcab712b2330d8647a8b16f7c38a04b3' into bazel-ve…
mikolalysenko Nov 25, 2026
de7cc74
Decline a NuGet package for vendored mode where a hub may read the lo…
mikolalysenko Nov 25, 2026
cc616d1
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 25, 2026
ac0430a
Mark the codes of the gem file source experimental in the contract
mikolalysenko Nov 25, 2026
4dde8a2
Say both ways a hub that is not seen fails after a flat vendored run
mikolalysenko Nov 25, 2026
bb5cdb2
Merge the PyPI and RubyGems vendored refusals into vendored mode for …
mikolalysenko Nov 25, 2026
af5b810
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 25, 2026
de3a3e5
Name the checksum an undo leaves in the hub's call with SOCKET_NO_BAZ…
mikolalysenko Nov 25, 2026
003df1f
Merge remote-tracking branch 'origin/main' into bazel-vendored/gem-fi…
mikolalysenko Nov 25, 2026
3e12698
Hold the NuGet vendored gate apart from a WORKSPACE file
mikolalysenko Nov 25, 2026
749b2a3
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 25, 2026
3599739
Merge main into vendored mode for a NuGet package of a rules_csharp hub
mikolalysenko Nov 25, 2026
45fc418
Merge remote-tracking branch 'origin/bazel-vendored/nuget-feed-block'…
mikolalysenko Nov 25, 2026
d9925fc
Merge main into bazel-vendored/gem-file-source
mikolalysenko Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/bazel-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ on:
# discovery, the lock inventory, the Ruby crawler (it says which lock
# Bundler loads), the upstream restore of `rollback`, the stale-install
# guard that those commands end with, the vendored backend
# (vendor/gem.rs), and the refusal of vendored mode beside a hub that
# reads the lock (vendor/bazel_hub.rs), which vendor/refusals.rs hands
# to every command.
# (vendor/gem.rs, and vendor/gem/ for the gem it commits for a hub),
# and the refusal of vendored mode beside a hub that reads the lock
# (vendor/bazel_hub.rs), which vendor/refusals.rs hands to every
# command.
# Last, the VEX code: `vex/` of the core, the files of the `vex`
# command, and `bazel/` of the core, which reads the workspace files and
# decides whether Bazel builds what was patched. Every flow holds the
Expand Down Expand Up @@ -73,6 +74,7 @@ on:
- 'crates/socket-patch-core/src/patch/redirect/upstream/gem.rs'
- 'crates/*/src/**/gem_refresh.rs'
- 'crates/socket-patch-core/src/vendor/gem.rs'
- 'crates/socket-patch-core/src/vendor/gem/**'
- 'crates/socket-patch-core/src/vendor/bazel_hub.rs'
- 'crates/socket-patch-core/src/vendor/refusals.rs'
- 'crates/socket-patch-core/src/bazel/**'
Expand Down Expand Up @@ -101,6 +103,7 @@ on:
- 'crates/socket-patch-core/src/patch/redirect/upstream/gem.rs'
- 'crates/*/src/**/gem_refresh.rs'
- 'crates/socket-patch-core/src/vendor/gem.rs'
- 'crates/socket-patch-core/src/vendor/gem/**'
- 'crates/socket-patch-core/src/vendor/bazel_hub.rs'
- 'crates/socket-patch-core/src/vendor/refusals.rs'
- 'crates/socket-patch-core/src/bazel/**'
Expand Down
16 changes: 9 additions & 7 deletions crates/socket-patch-cli/CLI_CONTRACT.md

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion crates/socket-patch-cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@ pub struct GlobalArgs {
/// that makes the hub take the copy cannot be shown to work
/// (`vendor_nuget_bazel_workspace`). Pass it when the build does find
/// the copy, does not take the project's packages from that lock, or
/// does not build the project. Other subcommands accept it silently.
/// does not build the project. Without it a gem is committed for a
/// rules_ruby hub as an archive that the hub builds, where that is
/// known to build; with it every gem is vendored by its path. Other
/// subcommands accept it silently.
#[arg(
help_heading = GLOBAL_OPTIONS,
long = "allow-vendored-in-bazel",
Expand Down
17 changes: 16 additions & 1 deletion crates/socket-patch-cli/src/commands/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4797,7 +4797,16 @@ fn print_vendor_closing(
.iter()
.filter(|f| flavor_install_command(f).is_some())
.all(|f| JVM_TOOLS.contains(&f.as_str()));
let reinstall = if jvm_only {
// A gem committed for a rules_ruby hub is installed by the Bazel
// build alone: Bundler by itself fails on its source, which the
// warning of the run says.
let advisory = socket_patch_core::vendor::gem::BAZEL_FILE_SOURCE;
let for_bazel = |e: &&PatchEvent| e.error_code.as_deref() == Some(advisory);
let for_bazel = env.events.iter().filter(for_bazel).count();
let only_for_bazel = for_bazel > 0 && for_bazel == env.summary.applied as usize;
let reinstall = if only_for_bazel {
"Build with Bazel, which installs the committed gems".to_string()
} else if jvm_only {
let cmds: Vec<String> = installs.iter().map(|c| format!("`{c}`")).collect();
// The block of a hub is in a file of the checkout's own.
let how = match installs == [HUB_BUILD] {
Expand All @@ -4815,6 +4824,12 @@ fn print_vendor_closing(
format!("Run {} to update the installed tree", cmds.join(" and "))
};
let mut extra = Vec::new();
if for_bazel > 0 && !only_for_bazel {
extra.push(
"Build with Bazel as well: it alone installs the gems committed for its hub."
.to_string(),
);
}
if wired_flavors.contains("bun") && common.cwd.join("bun.lockb").exists() {
extra.push(
"For binary Bun workspaces, also commit the workspace members' \
Expand Down
Loading
Loading