Skip to content

Commit

Permalink
hash goexperiment
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed May 7, 2024
1 parent 0dfcd6c commit 11bcf1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/go/godeps/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/sha256"
"fmt"
"io"
"os"
"path/filepath"
"sort"
"strings"
Expand Down Expand Up @@ -43,6 +44,9 @@ func libTarget(pkgs *Packages, pkg *Package) Target {
h.Write([]byte(module.Path))
h.Write([]byte(module.Version))
}
if exp := os.Getenv("GOEXPERIMENT"); exp != "" {
h.Write([]byte(exp))
}
suffix := fmt.Sprintf("_%.7x", h.Sum(nil))

if pkg.IsPartOfTree {
Expand Down

0 comments on commit 11bcf1d

Please sign in to comment.