Repository: gonum/gonum
Pull request #1613 (2021-04-19 04:41:03)

all: run make builds pass with go master
Please take a look.

<!--
Checklist:

- API changes have been discussed
- code is goformated correctly (goimports)
- packages with generated code have had code generation run
- tests pass locally
- linked to relevant issues

Please make sure your commit message summary line and pull request
title match the Go convention; a one-line summary of the change,
prefixed by the primary affected package that should complete the
sentence, "This change modifies Gonum to _____."
-->


codecov-commenter: # [Codecov](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum) Report
> Merging [#1613](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum) (9cb0acb) into [master](https://codecov.io/gh/gonum/gonum/commit/acc6e5ab144d5d62f94a7cac32cf33cbe5ecb89c?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum) (acc6e5a) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/gonum/gonum/pull/1613/graphs/tree.svg?width=650&height=150&src=pr&token=B7qHnqSPNL&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum)](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum)

```diff
@@           Coverage Diff           @@
##           master    #1613   +/-   ##
=======================================
  Coverage   73.04%   73.04%           
=======================================
  Files         498      498           
  Lines       58813    58813           
=======================================
  Hits        42960    42960           
  Misses      13425    13425           
  Partials     2428     2428           
```


| [Impacted Files](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum) | Coverage Δ | |
|---|---|---|
| [...sp/fourier/internal/fftpack/array\_bounds\_checks.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-ZHNwL2ZvdXJpZXIvaW50ZXJuYWwvZmZ0cGFjay9hcnJheV9ib3VuZHNfY2hlY2tzLmdv) | `51.11% <ø> (ø)` | |
| [...fourier/internal/fftpack/array\_no\_bounds\_checks.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-ZHNwL2ZvdXJpZXIvaW50ZXJuYWwvZmZ0cGFjay9hcnJheV9ub19ib3VuZHNfY2hlY2tzLmdv) | `81.81% <ø> (ø)` | |
| [graph/internal/set/same.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-Z3JhcGgvaW50ZXJuYWwvc2V0L3NhbWUuZ28=) | `100.00% <ø> (ø)` | |
| [graph/internal/set/same\_appengine.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-Z3JhcGgvaW50ZXJuYWwvc2V0L3NhbWVfYXBwZW5naW5lLmdv) | `100.00% <ø> (ø)` | |
| [graph/iterator/map.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-Z3JhcGgvaXRlcmF0b3IvbWFwLmdv) | `56.52% <ø> (ø)` | |
| [graph/iterator/nodes\_map.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-Z3JhcGgvaXRlcmF0b3Ivbm9kZXNfbWFwLmdv) | `90.24% <ø> (ø)` | |
| [graph/iterator/nodes\_map\_safe.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-Z3JhcGgvaXRlcmF0b3Ivbm9kZXNfbWFwX3NhZmUuZ28=) | `91.30% <ø> (ø)` | |
| [internal/asm/c128/stubs\_noasm.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-aW50ZXJuYWwvYXNtL2MxMjgvc3R1YnNfbm9hc20uZ28=) | `100.00% <ø> (ø)` | |
| [internal/asm/c64/stubs\_noasm.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-aW50ZXJuYWwvYXNtL2M2NC9zdHVic19ub2FzbS5nbw==) | `100.00% <ø> (ø)` | |
| [internal/asm/f32/ge\_noasm.go](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum#diff-aW50ZXJuYWwvYXNtL2YzMi9nZV9ub2FzbS5nbw==) | `69.23% <ø> (ø)` | |
| ... and [12 more](https://codecov.io/gh/gonum/gonum/pull/1613/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum). Last update [acc6e5a...9cb0acb](https://codecov.io/gh/gonum/gonum/pull/1613?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gonum).


Patch:
diff --git a/dsp/fourier/internal/fftpack/array_bounds_checks.go b/dsp/fourier/internal/fftpack/array_bounds_checks.go
index 7fe282ff..b53b8173 100644
--- a/dsp/fourier/internal/fftpack/array_bounds_checks.go
+++ b/dsp/fourier/internal/fftpack/array_bounds_checks.go
@@ -4,6 +4,7 @@
 
 // This file must be kept in sync with array_no_bound_checks.go.
 
+//go:build bounds
 // +build bounds
 
 package fftpack
diff --git a/dsp/fourier/internal/fftpack/array_no_bounds_checks.go b/dsp/fourier/internal/fftpack/array_no_bounds_checks.go
index 11d5ee6b..52f81b0a 100644
--- a/dsp/fourier/internal/fftpack/array_no_bounds_checks.go
+++ b/dsp/fourier/internal/fftpack/array_no_bounds_checks.go
@@ -4,6 +4,7 @@
 
 // This file must be kept in sync with array_bound_checks.go.
 
+//go:build !bounds
 // +build !bounds
 
 package fftpack
diff --git a/graph/formats/dot/fuzz/fuzz.go b/graph/formats/dot/fuzz/fuzz.go
index f122c6ac..37410756 100644
--- a/graph/formats/dot/fuzz/fuzz.go
+++ b/graph/formats/dot/fuzz/fuzz.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build gofuzz
 // +build gofuzz
 
 package fuzz
diff --git a/graph/formats/dot/internal/paste_copyright.go b/graph/formats/dot/internal/paste_copyright.go
index 97a239a3..01b84c0b 100644
--- a/graph/formats/dot/internal/paste_copyright.go
+++ b/graph/formats/dot/internal/paste_copyright.go
@@ -8,6 +8,7 @@
 // This file is made available under a Creative Commons CC0 1.0
 // Universal Public Domain Dedication.`)
 
+//go:build ignore
 // +build ignore
 
 package main
diff --git a/graph/internal/set/same.go b/graph/internal/set/same.go
index 85dc700b..a7031e4a 100644
--- a/graph/internal/set/same.go
+++ b/graph/internal/set/same.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !safe
 // +build !safe
 
 package set
diff --git a/graph/internal/set/same_appengine.go b/graph/internal/set/same_appengine.go
index 1ff02c38..368823d4 100644
--- a/graph/internal/set/same_appengine.go
+++ b/graph/internal/set/same_appengine.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build safe
 // +build safe
 
 package set
diff --git a/graph/iterator/map.go b/graph/iterator/map.go
index a3ead9a2..bca015c5 100644
--- a/graph/iterator/map.go
+++ b/graph/iterator/map.go
@@ -6,6 +6,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !safe
 // +build !safe
 
 package iterator
diff --git a/graph/iterator/nodes_map.go b/graph/iterator/nodes_map.go
index ab2d9512..c919b136 100644
--- a/graph/iterator/nodes_map.go
+++ b/graph/iterator/nodes_map.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !safe
 // +build !safe
 
 package iterator
diff --git a/graph/iterator/nodes_map_safe.go b/graph/iterator/nodes_map_safe.go
index e55ecbb6..d097dc2e 100644
--- a/graph/iterator/nodes_map_safe.go
+++ b/graph/iterator/nodes_map_safe.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build safe
 // +build safe
 
 package iterator
diff --git a/graph/topo/non_tomita_choice.go b/graph/topo/non_tomita_choice.go
index 36171d6f..12aeaa68 100644
--- a/graph/topo/non_tomita_choice.go
+++ b/graph/topo/non_tomita_choice.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !tomita
 // +build !tomita
 
 package topo
diff --git a/graph/topo/tomita_choice.go b/graph/topo/tomita_choice.go
index f85a0d6c..2b955f14 100644
--- a/graph/topo/tomita_choice.go
+++ b/graph/topo/tomita_choice.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build tomita
 // +build tomita
 
 package topo
diff --git a/internal/asm/c128/stubs_amd64.go b/internal/asm/c128/stubs_amd64.go
index a3770312..dbf3ff46 100644
--- a/internal/asm/c128/stubs_amd64.go
+++ b/internal/asm/c128/stubs_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package c128
diff --git a/internal/asm/c128/stubs_noasm.go b/internal/asm/c128/stubs_noasm.go
index eafed794..42b3e9c6 100644
--- a/internal/asm/c128/stubs_noasm.go
+++ b/internal/asm/c128/stubs_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package c128
diff --git a/internal/asm/c64/stubs_amd64.go b/internal/asm/c64/stubs_amd64.go
index 40be642e..2fff60ac 100644
--- a/internal/asm/c64/stubs_amd64.go
+++ b/internal/asm/c64/stubs_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package c64
diff --git a/internal/asm/c64/stubs_noasm.go b/internal/asm/c64/stubs_noasm.go
index d6ada1fd..6729b7a5 100644
--- a/internal/asm/c64/stubs_noasm.go
+++ b/internal/asm/c64/stubs_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package c64
diff --git a/internal/asm/f32/ge_amd64.go b/internal/asm/f32/ge_amd64.go
index a71fe7bb..5a67f5ff 100644
--- a/internal/asm/f32/ge_amd64.go
+++ b/internal/asm/f32/ge_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package f32
diff --git a/internal/asm/f32/ge_noasm.go b/internal/asm/f32/ge_noasm.go
index 80a83e52..40e83b31 100644
--- a/internal/asm/f32/ge_noasm.go
+++ b/internal/asm/f32/ge_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f32
diff --git a/internal/asm/f32/stubs_amd64.go b/internal/asm/f32/stubs_amd64.go
index 1b3b70c0..2cdd1cf9 100644
--- a/internal/asm/f32/stubs_amd64.go
+++ b/internal/asm/f32/stubs_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package f32
diff --git a/internal/asm/f32/stubs_noasm.go b/internal/asm/f32/stubs_noasm.go
index 17ab71f6..319d1406 100644
--- a/internal/asm/f32/stubs_noasm.go
+++ b/internal/asm/f32/stubs_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f32
diff --git a/internal/asm/f64/axpy.go b/internal/asm/f64/axpy.go
index 29dbddaa..4fc9e0eb 100644
--- a/internal/asm/f64/axpy.go
+++ b/internal/asm/f64/axpy.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/asm/f64/dot.go b/internal/asm/f64/dot.go
index 39b43ecb..a6818507 100644
--- a/internal/asm/f64/dot.go
+++ b/internal/asm/f64/dot.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/asm/f64/ge_amd64.go b/internal/asm/f64/ge_amd64.go
index 84355277..fda70a56 100644
--- a/internal/asm/f64/ge_amd64.go
+++ b/internal/asm/f64/ge_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package f64
diff --git a/internal/asm/f64/ge_noasm.go b/internal/asm/f64/ge_noasm.go
index d4396987..0c46515c 100644
--- a/internal/asm/f64/ge_noasm.go
+++ b/internal/asm/f64/ge_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/asm/f64/l2norm_noasm.go b/internal/asm/f64/l2norm_noasm.go
index c168f6ec..bfb8fba9 100644
--- a/internal/asm/f64/l2norm_noasm.go
+++ b/internal/asm/f64/l2norm_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/asm/f64/scal.go b/internal/asm/f64/scal.go
index 3fbed161..5269e9b0 100644
--- a/internal/asm/f64/scal.go
+++ b/internal/asm/f64/scal.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/asm/f64/stubs_amd64.go b/internal/asm/f64/stubs_amd64.go
index 92841ea2..bb9f4785 100644
--- a/internal/asm/f64/stubs_amd64.go
+++ b/internal/asm/f64/stubs_amd64.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package f64
diff --git a/internal/asm/f64/stubs_noasm.go b/internal/asm/f64/stubs_noasm.go
index 261dcdae..6fe9baf1 100644
--- a/internal/asm/f64/stubs_noasm.go
+++ b/internal/asm/f64/stubs_noasm.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !amd64 || noasm || gccgo || safe
 // +build !amd64 noasm gccgo safe
 
 package f64
diff --git a/internal/math32/sqrt.go b/internal/math32/sqrt.go
index 8a106276..afa428a1 100644
--- a/internal/math32/sqrt.go
+++ b/internal/math32/sqrt.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (!amd64 && !arm64) || noasm || gccgo || safe
 // +build !amd64,!arm64 noasm gccgo safe
 
 package math32
diff --git a/internal/math32/sqrt_amd64.go b/internal/math32/sqrt_amd64.go
index 1bca1eb5..05df84ac 100644
--- a/internal/math32/sqrt_amd64.go
+++ b/internal/math32/sqrt_amd64.go
@@ -6,6 +6,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package math32
diff --git a/internal/math32/sqrt_arm64.go b/internal/math32/sqrt_arm64.go
index 1bca1eb5..05df84ac 100644
--- a/internal/math32/sqrt_arm64.go
+++ b/internal/math32/sqrt_arm64.go
@@ -6,6 +6,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !noasm && !gccgo && !safe
 // +build !noasm,!gccgo,!safe
 
 package math32
diff --git a/mat/index_bound_checks.go b/mat/index_bound_checks.go
index a9acd1f0..59a9e047 100644
--- a/mat/index_bound_checks.go
+++ b/mat/index_bound_checks.go
@@ -4,6 +4,7 @@
 
 // This file must be kept in sync with index_no_bound_checks.go.
 
+//go:build bounds
 // +build bounds
 
 package mat
diff --git a/mat/index_no_bound_checks.go b/mat/index_no_bound_checks.go
index a15228a0..df8594e3 100644
--- a/mat/index_no_bound_checks.go
+++ b/mat/index_no_bound_checks.go
@@ -4,6 +4,7 @@
 
 // This file must be kept in sync with index_bound_checks.go.
 
+//go:build !bounds
 // +build !bounds
 
 package mat
diff --git a/mat/offset.go b/mat/offset.go
index 172aca6b..26c80a4c 100644
--- a/mat/offset.go
+++ b/mat/offset.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !safe
 // +build !safe
 
 package mat
diff --git a/mat/offset_appengine.go b/mat/offset_appengine.go
index 71b71c9f..be2ca78c 100644
--- a/mat/offset_appengine.go
+++ b/mat/offset_appengine.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build safe
 // +build safe
 
 package mat
diff --git a/mathext/internal/amos/amoslib/fortran.go b/mathext/internal/amos/amoslib/fortran.go
index c2bad47b..b5fa8cc2 100644
--- a/mathext/internal/amos/amoslib/fortran.go
+++ b/mathext/internal/amos/amoslib/fortran.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build fortran
 // +build fortran
 
 // Package amoslib is a wrapper around the Fortran amos library.
diff --git a/spatial/barneshut/bounds.go b/spatial/barneshut/bounds.go
index 841807d4..a015a503 100644
--- a/spatial/barneshut/bounds.go
+++ b/spatial/barneshut/bounds.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build bounds
 // +build bounds
 
 package barneshut
diff --git a/spatial/barneshut/no_bounds.go b/spatial/barneshut/no_bounds.go
index 03925dfb..84f200e7 100644
--- a/spatial/barneshut/no_bounds.go
+++ b/spatial/barneshut/no_bounds.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !bounds
 // +build !bounds
 
 package barneshut
diff --git a/unit/constant/defined_types.go b/unit/constant/defined_types.go
index cf232851..b59394fa 100644
--- a/unit/constant/defined_types.go
+++ b/unit/constant/defined_types.go
@@ -4,6 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 package main
diff --git a/unit/constant/generate_constants.go b/unit/constant/generate_constants.go
index 9a0bf220..fc9fe6d6 100644
--- a/unit/constant/generate_constants.go
+++ b/unit/constant/generate_constants.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 package main
diff --git a/unit/constant/generate_defined_types.go b/unit/constant/generate_defined_types.go
index 5e32891e..aeaf68d0 100644
--- a/unit/constant/generate_defined_types.go
+++ b/unit/constant/generate_defined_types.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 package main
@@ -26,6 +27,7 @@ const definedTemplate = `// Code generated by "go generate gonum.org/v1/gonum/un
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 package main
diff --git a/unit/generate_unit.go b/unit/generate_unit.go
index 7a09d17d..03c2014e 100644
--- a/unit/generate_unit.go
+++ b/unit/generate_unit.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 package main


Test patch:
diff --git a/graph/layout/isomap_386_test.go b/graph/layout/isomap_386_test.go
index ed15e906..a2b7dc98 100644
--- a/graph/layout/isomap_386_test.go
+++ b/graph/layout/isomap_386_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build 386
 // +build 386
 
 package layout_test
diff --git a/graph/layout/isomap_arm64_test.go b/graph/layout/isomap_arm64_test.go
index 90668f4b..1aa72743 100644
--- a/graph/layout/isomap_arm64_test.go
+++ b/graph/layout/isomap_arm64_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build arm64
 // +build arm64
 
 package layout_test
diff --git a/graph/layout/isomap_noasm_test.go b/graph/layout/isomap_noasm_test.go
index 40d9e3d8..7f53fa00 100644
--- a/graph/layout/isomap_noasm_test.go
+++ b/graph/layout/isomap_noasm_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build noasm || gccgo || safe
 // +build noasm gccgo safe
 
 package layout_test
diff --git a/mat/cblas_test.go b/mat/cblas_test.go
index 6f3f8e2d..0532dfc6 100644
--- a/mat/cblas_test.go
+++ b/mat/cblas_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build cblas
 // +build cblas
 
 package mat
diff --git a/mathext/internal/amos/amos_fortran_test.go b/mathext/internal/amos/amos_fortran_test.go
index dbb28836..c9a90143 100644
--- a/mathext/internal/amos/amos_fortran_test.go
+++ b/mathext/internal/amos/amos_fortran_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build fortran
 // +build fortran
 
 package amos