Skip to content

Commit

Permalink
hash go directive
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Oct 14, 2024
1 parent 016edcc commit 5a0513b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/go/godeps/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func listImports() {
scanner := bufio.NewScanner(f)
for scanner.Scan() {
t := scanner.Text()
if strings.Contains(t, "go:build") || strings.Contains(t, "+build") {
if strings.HasPrefix(t, "//go:") || strings.Contains(t, "+build") {
fmt.Println("BUILDCONSTRAINT", t)
}
}
Expand Down

0 comments on commit 5a0513b

Please sign in to comment.