commit | fc8884afc31655a85312463eb4ca43f00d3e8f44 | [log] [tgz] |
---|---|---|
author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | Wed Nov 09 15:33:00 2022 -0500 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Wed Nov 09 20:57:53 2022 +0000 |
tree | ea13aa94d88ef6843591b24cfe88a219605f3b99 | |
parent | 9ce248df8de5f220f7cc4fffdd6b4c3138e081d6 [diff] |
slices: add old build constraint syntax to help old go versions When a project transitively depends on x/exp/slices, go1.16 is confused and fails with errors like: "//go:build comment without // +build comment" Even when import of x/exp/slices guarded with build tags, so this is imported only when compiling with go1.18, this error is unavoidable. Let's wait a bit longer and help users who are stuck with old go. Updates golang/go#51436 Change-Id: I7ba589644475f55585c11ba1f7650c5ede6bc637 Reviewed-on: https://go-review.googlesource.com/c/exp/+/448996 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.