You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have github.com/prysmaticlabs/prysm/[email protected] added as a dependency in my go.mod, and I'm trying to upgrade my project from go1.19 to go1.20 and am getting the following error:
# github.com/prysmaticlabs/prysm/v3/encoding/bytesutil
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:12:17: cannot convert PadTo(x, 4) (value of type []byte) to type [4]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:19:18: cannot convert PadTo(x, 20) (value of type []byte) to type [20]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:26:18: cannot convert PadTo(x, 32) (value of type []byte) to type [32]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:33:18: cannot convert PadTo(x, 48) (value of type []byte) to type [48]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:40:18: cannot convert PadTo(x, 64) (value of type []byte) to type [64]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
/go/pkg/mod/github.com/prysmaticlabs/prysm/[email protected]/encoding/bytesutil/bytes_go120.go:47:18: cannot convert PadTo(x, 96) (value of type []byte) to type [96]byte: conversion of slices to arrays requires go1.20 or later (-lang was set to go1.19; check go.mod)
bytes_go120.go seems to be ready for go1.20 (PR #11838 by @prestonvanloon) but the go.mod still references go1.19, which is causing compilation issues for projects using go1.20+.
The text was updated successfully, but these errors were encountered:
I have
github.com/prysmaticlabs/prysm/[email protected]
added as a dependency in mygo.mod
, and I'm trying to upgrade my project from go1.19 to go1.20 and am getting the following error:bytes_go120.go
seems to be ready for go1.20 (PR #11838 by @prestonvanloon) but thego.mod
still references go1.19, which is causing compilation issues for projects using go1.20+.The text was updated successfully, but these errors were encountered: