From 0450d4d46d68d9e2184fe3a7cea9ec500b37a68a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 2 Oct 2021 10:59:47 +0200 Subject: [PATCH] bump major version to v2 --- example_test.go | 3 ++- go.mod | 2 +- maybe/maybe_unix.go | 3 ++- option.go | 1 + symlink_test.go | 1 + tempfile.go | 1 + tempfile_test.go | 1 + writefile.go | 1 + writefile_test.go | 1 + 9 files changed, 11 insertions(+), 3 deletions(-) diff --git a/example_test.go b/example_test.go index 597a3b4..2f72f5f 100644 --- a/example_test.go +++ b/example_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio_test @@ -20,7 +21,7 @@ import ( "fmt" "log" - "github.com/google/renameio" + "github.com/google/renameio/v2" ) func ExampleTempFile_justone() { diff --git a/go.mod b/go.mod index 7a04df0..1efb3d6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/google/renameio +module github.com/google/renameio/v2 go 1.13 diff --git a/maybe/maybe_unix.go b/maybe/maybe_unix.go index 024e198..781c22a 100644 --- a/maybe/maybe_unix.go +++ b/maybe/maybe_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package maybe @@ -5,7 +6,7 @@ package maybe import ( "os" - "github.com/google/renameio" + "github.com/google/renameio/v2" ) // WriteFile mirrors ioutil.WriteFile. On Linux it uses renameio.WriteFile to diff --git a/option.go b/option.go index d54b05c..f825f6c 100644 --- a/option.go +++ b/option.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio diff --git a/symlink_test.go b/symlink_test.go index af784ed..5e145e4 100644 --- a/symlink_test.go +++ b/symlink_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio diff --git a/tempfile.go b/tempfile.go index 4c7128b..edc3e98 100644 --- a/tempfile.go +++ b/tempfile.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio diff --git a/tempfile_test.go b/tempfile_test.go index 3fc5a98..99df2f2 100644 --- a/tempfile_test.go +++ b/tempfile_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio diff --git a/writefile.go b/writefile.go index 92a016c..5450421 100644 --- a/writefile.go +++ b/writefile.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio diff --git a/writefile_test.go b/writefile_test.go index a8a3e20..ebe5f2d 100644 --- a/writefile_test.go +++ b/writefile_test.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows // +build !windows package renameio