Skip to content

Commit

Permalink
test(unit): exclude darwin from go build constraint (oras-project#1289)
Browse files Browse the repository at this point in the history
Signed-off-by: wangxiaoxuan273 <[email protected]>
  • Loading branch information
wangxiaoxuan273 authored and FeynmanZhou committed May 11, 2024
1 parent cacb4c3 commit 0fac561
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/console/console_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/progress/status_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/track/target_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 2 additions & 0 deletions cmd/oras/internal/display/status/tty_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/internal/option/common_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/root/blob/fetch_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/root/blob/push_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 1 addition & 1 deletion cmd/oras/root/cp_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Expand Down
2 changes: 2 additions & 0 deletions cmd/oras/root/pull_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build freebsd || linux || netbsd || openbsd || solaris

/*
Copyright The ORAS Authors.
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit 0fac561

Please sign in to comment.