Skip to content

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Jul 2, 2024

Instead of being blocked on unsupported platforms (*/wasm and plan9/*), flock will throught runtime errors.

The errors are:

	return &fs.PathError{
		Op:   "RLock",
		Path: f.Path(),
		Err:  errors.ErrUnsupported,
	}

The implementation for unsupported platforms can be added in the future.

Fixes #60

@ldez ldez changed the title feat: use runtime errors instead of compilation errors for unusupported platform feat: use runtime errors instead of compilation errors for unusupported platforms Jul 2, 2024
@ldez ldez merged commit c527283 into gofrs:master Jul 2, 2024
@ldez ldez deleted the feat/runtime-errors branch July 2, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot build on */wasm, plan9/*
1 participant