Skip to content

Upgrade switchblade to v0.9.5 (multi-stack delete fix)#1137

Merged
tnikolova82 merged 1 commit intomasterfrom
upgrade-switchblade-v0.9.5
Apr 9, 2026
Merged

Upgrade switchblade to v0.9.5 (multi-stack delete fix)#1137
tnikolova82 merged 1 commit intomasterfrom
upgrade-switchblade-v0.9.5

Conversation

@tnikolova82
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades github.com/cloudfoundry/switchblade from v0.9.4 to v0.9.5
  • Fixes integration test failures when CF has multiple stacks (cflinuxfs4 + cflinuxfs5) deployed

Problem

When both cflinuxfs4 and cflinuxfs5 stacks are available in the CF environment, switchblade.Initialize() calls cf delete-buildpack -f <name> without the -s flag. This fails with:

Multiple buildpacks named <name> found. Specify a stack name by using the '-s' flag.

Fix

switchblade v0.9.5 (cloudfoundry/switchblade#126) iterates over all buildpack resources from the /v3/buildpacks API and uses -s <stack> when the resource has a non-empty stack field.

Changes

Only 4 files changed (pure dependency upgrade):

  • go.mod — v0.9.4 → v0.9.5
  • go.sum — updated hashes
  • vendor/github.com/cloudfoundry/switchblade/internal/cloudfoundry/initialize.go — the fix
  • vendor/modules.txt — version bump

switchblade v0.9.5 fixes cf delete-buildpack failures when multiple
stacks (cflinuxfs4 + cflinuxfs5) are deployed. The fix iterates over
all buildpack resources and uses the -s flag when a stack is set,
preventing 'Multiple buildpacks named X found' errors in Initialize().
Copy link
Copy Markdown
Contributor

@ivanovac ivanovac left a comment

Choose a reason for hiding this comment

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

lgtm

@tnikolova82 tnikolova82 merged commit 1102a2d into master Apr 9, 2026
7 checks passed
@tnikolova82 tnikolova82 deleted the upgrade-switchblade-v0.9.5 branch April 9, 2026 10:10
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