Skip to content

Commit

Permalink
Modernize build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Mar 29, 2022
1 parent 32847f7 commit b88eb72
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 27 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.14, 1.16]
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
with:
Expand All @@ -25,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
with:
go-version: ${{ matrix.go }}
go-version: 1.18

- name: Setup Ruby
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df # v1.62.0
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ permissions:
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
go: [1.14, 1.16]
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
with:
Expand All @@ -25,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
with:
go-version: ${{ matrix.go }}
go-version: 1.18

- name: Setup Ruby
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df # v1.62.0
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
golang 1.18
2 changes: 1 addition & 1 deletion src/protector/protector.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !openbsd
//go:build !openbsd

package protector

Expand Down
2 changes: 1 addition & 1 deletion src/protector/protector_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build openbsd
//go:build openbsd

package protector

Expand Down
2 changes: 1 addition & 1 deletion src/result_others.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !386,!amd64
//go:build !386 && !amd64

package fzf

Expand Down
2 changes: 0 additions & 2 deletions src/result_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !tcell

package fzf

import (
Expand Down
2 changes: 1 addition & 1 deletion src/result_x86.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build 386 amd64
//go:build 386 || amd64

package fzf

Expand Down
2 changes: 1 addition & 1 deletion src/terminal_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package fzf

Expand Down
2 changes: 1 addition & 1 deletion src/terminal_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package fzf

Expand Down
4 changes: 1 addition & 3 deletions src/tui/dummy.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// +build !ncurses
// +build !tcell
// +build !windows
//go:build !tcell && !windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/light_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/light_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//+build windows
//go:build windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/tcell.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build tcell windows
//go:build tcell || windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/tcell_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build tcell windows
//go:build tcell || windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/ttyname_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/tui/ttyname_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package tui

Expand Down
2 changes: 1 addition & 1 deletion src/util/util_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package util

Expand Down
2 changes: 1 addition & 1 deletion src/util/util_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package util

Expand Down

0 comments on commit b88eb72

Please sign in to comment.