Skip to content

Commit

Permalink
Merge pull request #5525 from slonopotamus/legacy-build-tags
Browse files Browse the repository at this point in the history
Remove pre-Go 1.17 build tags
  • Loading branch information
crazy-max authored Nov 21, 2024
2 parents e853c88 + 0a5a80c commit 05ea8c9
Show file tree
Hide file tree
Showing 121 changed files with 0 additions and 122 deletions.
1 change: 0 additions & 1 deletion cache/blobs_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package cache

Expand Down
1 change: 0 additions & 1 deletion cache/blobs_nolinux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package cache

Expand Down
1 change: 0 additions & 1 deletion cache/compression_nydus.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build nydus
// +build nydus

package cache

Expand Down
1 change: 0 additions & 1 deletion cache/contenthash/checksum_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package contenthash

Expand Down
1 change: 0 additions & 1 deletion cache/contenthash/filehash_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package contenthash

Expand Down
1 change: 0 additions & 1 deletion cache/contenthash/filehash_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package contenthash

Expand Down
1 change: 0 additions & 1 deletion client/client_nydus_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build nydus
// +build nydus

package client

Expand Down
1 change: 0 additions & 1 deletion client/mergediff_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package client

Expand Down
1 change: 0 additions & 1 deletion client/mergediff_nolinux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package client

Expand Down
1 change: 0 additions & 1 deletion cmd/buildctl/main_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/config/gcpolicy_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package config

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/config/gcpolicy_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package config

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/main_containerd_worker_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/main_oci_worker.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/main_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/main_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/buildkitd/service_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package main

Expand Down
1 change: 0 additions & 1 deletion errdefs/internal_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package errdefs

Expand Down
1 change: 0 additions & 1 deletion errdefs/internal_nolinux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package errdefs

Expand Down
1 change: 0 additions & 1 deletion examples/gobuild/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion executor/containerdexecutor/executor_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package containerdexecutor

Expand Down
1 change: 0 additions & 1 deletion executor/oci/spec_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package oci

Expand Down
1 change: 0 additions & 1 deletion executor/resources/monitor_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package resources

Expand Down
1 change: 0 additions & 1 deletion executor/resources/monitor_nolinux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package resources

Expand Down
1 change: 0 additions & 1 deletion executor/runcexecutor/executor.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package runcexecutor

Expand Down
1 change: 0 additions & 1 deletion exporter/containerimage/patch.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !nydus
// +build !nydus

package containerimage

Expand Down
1 change: 0 additions & 1 deletion exporter/containerimage/patch_nydus.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build nydus
// +build nydus

package containerimage

Expand Down
1 change: 0 additions & 1 deletion exporter/tar/export_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package local

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !dfrunsecurity
// +build !dfrunsecurity

package dockerfile2llb

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/dockerfile2llb/convert_runsecurity.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfrunsecurity
// +build dfrunsecurity

package dockerfile2llb

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !dfcopychmodnonoctal
// +build !dfcopychmodnonoctal

package dockerfile2llb

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfcopychmodnonoctal
// +build dfcopychmodnonoctal

package dockerfile2llb

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfexcludepatterns
// +build dfexcludepatterns

package dockerfile2llb

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/dockerfile_chmod_non_octal_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfcopychmodnonoctal
// +build dfcopychmodnonoctal

package dockerfile

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/dockerfile_parents_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfparents
// +build dfparents

package dockerfile

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/dockerfile_runsecurity_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfrunsecurity
// +build dfrunsecurity

package dockerfile

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/exclude_patterns_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfexcludepatterns
// +build dfexcludepatterns

package dockerfile

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/instructions/commands_runsecurity.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfrunsecurity
// +build dfrunsecurity

package instructions

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/instructions/errors_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package instructions

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfexcludepatterns
// +build dfexcludepatterns

package instructions

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/instructions/parse_parents.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build dfparents
// +build dfparents

package instructions

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/linter/generate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion frontend/dockerfile/shell/equal_env_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package shell

Expand Down
1 change: 0 additions & 1 deletion session/filesync/diffcopy_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package filesync

Expand Down
1 change: 0 additions & 1 deletion session/filesync/diffcopy_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package filesync

Expand Down
1 change: 0 additions & 1 deletion session/sshforward/sshprovider/agentprovider_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package sshprovider

Expand Down
1 change: 0 additions & 1 deletion session/sshforward/sshprovider/agentprovider_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package sshprovider

Expand Down
1 change: 0 additions & 1 deletion snapshot/diffapply_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package snapshot

Expand Down
1 change: 0 additions & 1 deletion snapshot/snapshotter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package snapshot

Expand Down
1 change: 0 additions & 1 deletion solver/llbsolver/file/backend_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package file

Expand Down
1 change: 0 additions & 1 deletion solver/llbsolver/ops/user_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux && !windows
// +build !linux,!windows

package ops

Expand Down
1 change: 0 additions & 1 deletion source/git/source_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package git

Expand Down
1 change: 0 additions & 1 deletion source/git/source_windows.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package git

Expand Down
1 change: 0 additions & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build tools
// +build tools

// Package tools tracks dependencies on binaries not referenced in this codebase.
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
Expand Down
1 change: 0 additions & 1 deletion util/appcontext/appcontext_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package appcontext

Expand Down
1 change: 0 additions & 1 deletion util/appdefaults/appdefaults_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package appdefaults

Expand Down
1 change: 0 additions & 1 deletion util/archutil/386_binary.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !386
// +build !386

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/386_check.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !386
// +build !386

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/386_check_386.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build 386
// +build 386

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/amd64_binary.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !amd64
// +build !amd64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/amd64_check.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !amd64
// +build !amd64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/amd64_check_amd64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build amd64
// +build amd64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/arm64_binary.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !arm64
// +build !arm64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/arm64_check.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !arm64
// +build !arm64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/arm64_check_arm64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build arm64
// +build arm64

package archutil

Expand Down
1 change: 0 additions & 1 deletion util/archutil/arm_binary.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !arm
// +build !arm

package archutil

Expand Down
Loading

0 comments on commit 05ea8c9

Please sign in to comment.