diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/checkescape/checkescape.go | 9 | ||||
-rw-r--r-- | tools/github/BUILD | 2 | ||||
-rw-r--r-- | tools/github/reviver/BUILD | 2 | ||||
-rw-r--r-- | tools/go_generics/BUILD | 2 | ||||
-rw-r--r-- | tools/go_generics/main.go (renamed from tools/go_generics/generics.go) | 0 | ||||
-rwxr-xr-x | tools/make_release.sh | 21 |
6 files changed, 27 insertions, 9 deletions
diff --git a/tools/checkescape/checkescape.go b/tools/checkescape/checkescape.go index 8eeabbc3d..c788654a8 100644 --- a/tools/checkescape/checkescape.go +++ b/tools/checkescape/checkescape.go @@ -709,8 +709,13 @@ func run(pass *analysis.Pass, localEscapes bool) (interface{}, error) { return } - // Recursively collect information from - // the other analyzers. + // If this package is the atomic package, the implementation + // may be replaced by instrinsics that don't have analysis. + if x.Pkg.Pkg.Path() == "sync/atomic" { + return + } + + // Recursively collect information. var imp packageEscapeFacts if !pass.ImportPackageFact(x.Pkg.Pkg, &imp) { // Unable to import the dependency; we must diff --git a/tools/github/BUILD b/tools/github/BUILD index a345debf6..9c94bbc63 100644 --- a/tools/github/BUILD +++ b/tools/github/BUILD @@ -8,7 +8,7 @@ go_binary( nogo = False, deps = [ "//tools/github/reviver", - "@com_github_google_go_github_v32//github:go_default_library", + "@com_github_google_go_github_v35//github:go_default_library", "@org_golang_x_oauth2//:go_default_library", ], ) diff --git a/tools/github/reviver/BUILD b/tools/github/reviver/BUILD index fc54782f5..aac1c18bf 100644 --- a/tools/github/reviver/BUILD +++ b/tools/github/reviver/BUILD @@ -12,7 +12,7 @@ go_library( visibility = [ "//tools/github:__subpackages__", ], - deps = ["@com_github_google_go_github_v32//github:go_default_library"], + deps = ["@com_github_google_go_github_v35//github:go_default_library"], ) go_test( diff --git a/tools/go_generics/BUILD b/tools/go_generics/BUILD index 807c08ead..78b636130 100644 --- a/tools/go_generics/BUILD +++ b/tools/go_generics/BUILD @@ -5,8 +5,8 @@ package(licenses = ["notice"]) go_binary( name = "go_generics", srcs = [ - "generics.go", "imports.go", + "main.go", "remove.go", ], visibility = ["//:sandbox"], diff --git a/tools/go_generics/generics.go b/tools/go_generics/main.go index 30584006c..30584006c 100644 --- a/tools/go_generics/generics.go +++ b/tools/go_generics/main.go diff --git a/tools/make_release.sh b/tools/make_release.sh index 10742dd54..e125c7e96 100755 --- a/tools/make_release.sh +++ b/tools/make_release.sh @@ -22,8 +22,10 @@ if [[ "$#" -le 2 ]]; then fi set -xeo pipefail -declare -r private_key="$1"; shift -declare -r root="$1"; shift +declare -r private_key="$1" +shift +declare -r root="$1" +shift declare -a binaries declare -a pkgs @@ -44,7 +46,7 @@ install_raw() { name=$(basename "${binary}") mkdir -p "${root}/$1/${arch}" cp -f "${binary}" "${root}/$1/${arch}" - (cd "${root}/$1/${arch}" && sha512sum "${name}" > "${name}.sha512") + (cd "${root}/$1/${arch}" && sha512sum "${name}" >"${name}.sha512") done } @@ -55,7 +57,8 @@ install_apt() { # If nightly, install only nightly artifacts. if [[ "${NIGHTLY:-false}" == "true" ]]; then - # The "latest" directory and current date. + # Install the nightly release. + # https://gvisor.dev/docs/user_guide/install/#nightly stamp="$(date -Idate)" install_raw "nightly/latest" install_raw "nightly/${stamp}" @@ -69,13 +72,23 @@ else for tag in ${tags}; do name=$(echo "${tag}" | cut -d'-' -f2) base=$(echo "${name}" | cut -d'.' -f1) + # Install the "specific" release. This is the latest release with the + # given date. + # https://gvisor.dev/docs/user_guide/install/#specific-release + install_raw "release/${base}" + # Install the "point release". + # https://gvisor.dev/docs/user_guide/install/#point-release install_raw "release/${name}" + # Install the latest release. + # https://gvisor.dev/docs/user_guide/install/#latest-release install_raw "release/latest" + install_apt "release" install_apt "${base}" done else # Otherwise, assume it is a raw master commit. + # https://gvisor.dev/docs/user_guide/install/#head install_raw "master/latest" install_apt "master" fi |