Skip to content

Commit

Permalink
Only archive and unarchive labels for target modules (#2983)
Browse files Browse the repository at this point in the history
We should only be archiving and unarchiving labels
for target modules.
  • Loading branch information
doriable authored May 16, 2024
1 parent bcf427c commit d740a18
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions private/buf/cmd/buf/command/beta/registry/archive/archive.go
Original file line number Diff line number Diff line change
@@ -106,6 +106,9 @@ func run(
}
registryToModuleFullNames := map[string][]bufmodule.ModuleFullName{}
for _, module := range workspace.Modules() {
if !module.IsTarget() {
continue
}
if moduleFullName := module.ModuleFullName(); moduleFullName != nil {
moduleFullNames, ok := registryToModuleFullNames[moduleFullName.Registry()]
if !ok {
Original file line number Diff line number Diff line change
@@ -106,6 +106,9 @@ func run(
}
registryToModuleFullNames := map[string][]bufmodule.ModuleFullName{}
for _, module := range workspace.Modules() {
if !module.IsTarget() {
continue
}
if moduleFullName := module.ModuleFullName(); moduleFullName != nil {
moduleFullNames, ok := registryToModuleFullNames[moduleFullName.Registry()]
if !ok {

0 comments on commit d740a18

Please sign in to comment.