Comments (2)
It's hard for me to test this but I guess it should work like for OS X and OpenBSD.
Could you try to change line 14 in const_bsds.go to // +build darwin openbsd freebsd
and change the contents of const_win_unix.go to
// +build !darwin
// +build !openbsd
// +build !freebsd
and then report if that works?
from afero.
It works!
$ git diff
diff --git a/const_bsds.go b/const_bsds.go
index 28cd274..9717374 100644
--- a/const_bsds.go
+++ b/const_bsds.go
@@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-// +build darwin openbsd
+// +build darwin openbsd freebsd
package afero
diff --git a/const_win_unix.go b/const_win_unix.go
index 72d6aaf..d8f392b 100644
--- a/const_win_unix.go
+++ b/const_win_unix.go
@@ -12,6 +12,7 @@
// limitations under the License.
// +build !darwin
// +build !openbsd
+// +build !freebsd
package afero
$ pwd
/home/nixusr/gocode/src/github.com/spf13/afero
$ go build
$ go install
$ go test
PASS
ok github.com/spf13/afero 4.103s
from afero.
Related Issues (20)
- MemMapFs MkdirAll error in parallel tests after go 1.18
- CVE-2022-32149: golang.org/x/text < 0.3.8 HOT 3
- Consider updating declared Go version in go.mod
- [QUESTION] Convert embed.FS to afero.MemMapFS HOT 1
- MemMapFs `Remove` file panics
- bad file descriptor with CacheOnReadFs
- MemMapFs clears out non chmod mode bits when writing file
- Vulnerability of dependency "golang.org/x/text" HOT 3
- `[zipFS]` readdir \: The system cannot find the file specified. HOT 1
- Would there be a `Truncate` method on `Fs`?
- Doesn't compile on WASI HOT 2
- [MemMapFs] Will MemMapFs support creating read-only files?
- Fails to build for plan9
- github.com/googleapis/google-cloud-go-testing is archived and deprecated
- CVE-2023-44487: golang.org/grpc <1.56.3 >=1.57.0 <1.57.1 >=1.58.0 <1.58.3
- memfs support Sys()
- memfs vs osfs behavior differences
- Out of memory when reading large file inside zip file via zipfs
- Bug: OpenFile broken for MemMapFs
- Is the framework really abstract? Working with non-Windows file systems on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afero.