error while building main branch of obfs4
While building the main
branch (currently baf22540), I have the following error:
# github.com/klauspost/compress/huff0
../vendor/github.com/klauspost/compress/huff0/decompress.go:774:21: cannot convert out (variable of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:775:24: cannot convert out[dstEvery:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:776:24: cannot convert out[dstEvery * 2:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:777:24: cannot convert out[dstEvery * 3:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:1013:21: cannot convert out (variable of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:1014:24: cannot convert out[dstEvery:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:1015:24: cannot convert out[dstEvery * 2:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
../vendor/github.com/klauspost/compress/huff0/decompress.go:1016:24: cannot convert out[dstEvery * 3:] (value of type []byte) to type *[256]byte:
conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)
I have not tested but I think updating the go version to 1.17 in go.mod
might fix that.