浏览代码

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 1 年之前
父节点
当前提交
307962dbd5
共有 1 个文件被更改,包括 3 次插入0 次删除
  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.
 //
 // Constructor Load and Parse read a resolv.conf file from the filesystem or