Explorar o código

Merge pull request #47578 from thaJeztah/fix_resolvconf_go_version

resolvconf: add //go:build directives to prevent downgrading to go1.16 language
Sebastiaan van Stijn hai 1 ano
pai
achega
307962dbd5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      libnetwork/internal/resolvconf/resolvconf.go

+ 3 - 0
libnetwork/internal/resolvconf/resolvconf.go

@@ -1,3 +1,6 @@
+// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
+//go:build go1.21
+
 // Package resolvconf is used to generate a container's /etc/resolv.conf file.
 // Package resolvconf is used to generate a container's /etc/resolv.conf file.
 //
 //
 // Constructor Load and Parse read a resolv.conf file from the filesystem or
 // Constructor Load and Parse read a resolv.conf file from the filesystem or