Skip to content

add more //go:build directives to prevent downgrading to go1.16#48434

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:more_gocompat
Sep 9, 2024
Merged

add more //go:build directives to prevent downgrading to go1.16#48434
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:more_gocompat

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

libnetwork/networkdb: add //go:build directives to prevent downgrading to go1.16

commit 2847c4b switched networkdb to use
go-immutable-radix v2, which uses generics, but failed to add the go:build
directives.

# github.com/docker/docker/libnetwork/networkdb
../../libnetwork/networkdb/networkdb.go:47:19: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../libnetwork/networkdb/networkdb.go:259:33: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../libnetwork/networkdb/networkdb.go:269:25: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../libnetwork/networkdb/networkdb.go:270:27: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)

daemon/logger/loggerutils: add //go:build directives to prevent downgrading to go1.16

commit 77f2d90 introduced the slices import,
which uses generics, but failed to add the go:build directives.

# github.com/docker/docker/daemon/logger/loggerutils
../../daemon/logger/loggerutils/logfile.go:770:2: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)

…g to go1.16

commit 2847c4b switched networkdb to use
go-immutable-radix v2, which uses generics, but failed to add the go:build
directives.

    # github.com/docker/docker/libnetwork/networkdb
    ../../libnetwork/networkdb/networkdb.go:47:19: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
    ../../libnetwork/networkdb/networkdb.go:259:33: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
    ../../libnetwork/networkdb/networkdb.go:269:25: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)
    ../../libnetwork/networkdb/networkdb.go:270:27: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
…rading to go1.16

commit 77f2d90 introduced the slices import,
which uses generics, but failed to add the go:build directives.

    # github.com/docker/docker/daemon/logger/loggerutils
    ../../daemon/logger/loggerutils/logfile.go:770:2: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.0.0 milestone Sep 6, 2024
@thaJeztah thaJeztah self-assigned this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

3 participants