Upgrade switchblade to v0.9.5 (multi-stack delete fix)#1137
Merged
tnikolova82 merged 1 commit intomasterfrom Apr 9, 2026
Merged
Upgrade switchblade to v0.9.5 (multi-stack delete fix)#1137tnikolova82 merged 1 commit intomasterfrom
tnikolova82 merged 1 commit intomasterfrom
Conversation
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().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.com/cloudfoundry/switchbladefrom v0.9.4 to v0.9.5Problem
When both cflinuxfs4 and cflinuxfs5 stacks are available in the CF environment,
switchblade.Initialize()callscf delete-buildpack -f <name>without the-sflag. This fails with:Fix
switchblade v0.9.5 (cloudfoundry/switchblade#126) iterates over all buildpack resources from the
/v3/buildpacksAPI 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.5go.sum— updated hashesvendor/github.com/cloudfoundry/switchblade/internal/cloudfoundry/initialize.go— the fixvendor/modules.txt— version bump