diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-08-26 14:31:08 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-09-01 08:35:51 +0300 |
commit | f635e1909d098c7b5d3ce4c71e08dc9b08e463f3 (patch) | |
tree | a344b0d16ace4ab5fe706946359e76982982a958 /internal/helper | |
parent | 50eff62c1b1f5730c7ca18597493b0b2926e72ca (diff) |
global: Support Go-1.17-style build tags
With Go 1.17, new syntax was introduced for build tags which has the
intent to be much easier to use compared to the previous `+build` ones.
To ease the migration, Go 1.17 supports both old-style and new-style
build tags, where the recommended migration path is to have both as long
as projects support older Go versions which don't yet know about the new
syntax.
Migrate our codebase to use both both styles. While we don't yet support
Go 1.17 officially, it doesn't hurt to be prepared, and furthermore it
fixes linting issues I have been observing on my machine.
Diffstat (limited to 'internal/helper')
-rw-r--r-- | internal/helper/fstype/detect_unix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/helper/fstype/detect_unix.go b/internal/helper/fstype/detect_unix.go index e5665dae5..d82985789 100644 --- a/internal/helper/fstype/detect_unix.go +++ b/internal/helper/fstype/detect_unix.go @@ -1,3 +1,4 @@ +//go:build darwin || dragonfly || freebsd // +build darwin dragonfly freebsd package fstype |