Skip to content

Commit

Permalink
Add "go get" suggestion to panic
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile authored and bradfitz committed Apr 26, 2023
1 parent e4bae7a commit 7e06285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion untested.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ func init() {
if os.Getenv(env) == v {
return
}
panic("Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the " + v + " runtime. If you want to risk it, run with environment variable " + env + "=\"" + v + "\" set. Notably, if " + v + " adds a moving garbage collector, this program is unsafe to use.")
panic("Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the " + v + " runtime. You can try updating this package by running \"go get go4.org/unsafe/assume-no-moving-gc@latest\". If that doesn't work and you want to risk it, run with environment variable " + env + "=\"" + v + "\" set. Notably, if " + v + " adds a moving garbage collector, this program is unsafe to use.")
}

0 comments on commit 7e06285

Please sign in to comment.