Browse code

remove obsolete //go:build tags

These are no longer needed as these are now part of a module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/08/01 07:46:53
Showing 68 changed files
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package container
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package containerd
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package containerd
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package containerd
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package containerd
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// TODO(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package daemon exposes the functions that occur on the host server
5 2
 // that the Docker daemon is running.
6 3
 //
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && (linux || freebsd)
1
+//go:build linux || freebsd
3 2
 
4 3
 package daemon
5 4
 
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package containerimage
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package mobyexporter
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package image
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// TODO(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package platform
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package sliceutil
5 2
 
6 3
 func Dedup[T comparable](slice []T) []T {
... ...
@@ -1,5 +1,3 @@
1
-//go:build go1.10
2
-
3 1
 package unshare
4 2
 
5 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 //go:generate protoc -I=. -I=../../vendor/ --gogofaster_out=import_path=github.com/docker/docker/daemon/libnetwork:. agent.proto
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package config
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package bridge
5 2
 
6 3
 import (
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && linux
1
+//go:build linux
3 2
 
4 3
 package firewaller
5 4
 
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.22 && linux
1
+//go:build linux
3 2
 
4 3
 package nftabler
5 4
 
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package bridge
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package bridge
5 2
 
6 3
 import (
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && linux
1
+//go:build linux
3 2
 
4 3
 package overlay
5 4
 
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && linux
1
+//go:build linux
3 2
 
4 3
 package overlay
5 4
 
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package remote
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package countmap
5 2
 
6 3
 // Map is a map of counters.
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package hashable provides handy utility types for making unhashable values
5 2
 // hashable.
6 3
 package hashable
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package l2disco
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package l2disco
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package maputil
5 2
 
6 3
 func FilterValues[K comparable, V any](in map[K]V, fn func(V) bool) []V {
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package nftables provides methods to create an nftables table and manage its maps, sets,
5 2
 // chains, and rules.
6 3
 //
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package resolvconf is used to generate a container's /etc/resolv.conf file.
5 2
 //
6 3
 // Constructor Load and Parse read a resolv.conf file from the filesystem or
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package setmatrix
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package defaultipam
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package ipamutils provides utility functions for ipam management
5 2
 package ipamutils
6 3
 
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && linux
1
+//go:build linux
3 2
 
4 3
 package iptables
5 4
 
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && linux
1
+//go:build linux
3 2
 
4 3
 package netutils
5 4
 
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package networkdb
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package networkdb
5 2
 
6 3
 //go:generate protoc -I=. -I=../../../vendor/ --gogofaster_out=import_path=github.com/docker/docker/daemon/libnetwork/networkdb:. networkdb.proto
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 // Package options provides a way to pass unstructured sets of options to a
5 2
 // component expecting a strongly-typed configuration structure.
6 3
 package options
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package osl
5 2
 
6 3
 import (
... ...
@@ -1,5 +1,4 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23 && (linux || freebsd)
1
+//go:build linux || freebsd
3 2
 
4 3
 package osl
5 4
 
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package routed
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package libnetwork
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package loggerutils
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// TODO(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package oci
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package v2
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package registry
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package container
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package grpc
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package image
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package system
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package system
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package system
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package iterutil
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package iterutil
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package daemon
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package environment
5 2
 
6 3
 import (
... ...
@@ -1,6 +1,3 @@
1
-// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2
-//go:build go1.23
3
-
4 1
 package testutil
5 2
 
6 3
 import (