Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Jul 28, 2023
1 parent ca5af41 commit 8a18322
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/gazelle/update-repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ func updateRepos(wd string, args []string) (err error) {
sortedFiles = append(sortedFiles, f)
}
}
// If we are in bzlmod mode, then do not update the workspace. However, if a macro file was
// specified, proceed with generating the macro file. This is useful for rule repositories that
// build with bzlmod enabled, but support clients that use legacy WORKSPACE dependency loading.
// If we are in bzlmod mode, then do not update the workspace.
if !c.Bzlmod && ensureMacroInWorkspace(uc, workspaceInsertIndex) {
if !seenFile[uc.workspace] {
seenFile[uc.workspace] = true
Expand Down

0 comments on commit 8a18322

Please sign in to comment.