-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix building on FreeBSD #1499
Fix building on FreeBSD #1499
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Hmm,
will be nice to somehow enable
golang-ci uses a fork https://github.com/golangci/unconvert |
OK. Now only need to figure out how to resolve unconvert lint issue golangci/golangci-lint#1809 Let me know if you have some ideas. |
Hi @zaynetro, thanks for the PR, the changes look good! We can wait for you to implement the changes in unconvert or golangci-lint. If that takes long to merge, we can also have separate the implementations for ocis_unix and ocis_freebsd. |
Seems like it will take a while to update golangci-lint so I split into more freebsd specific files as you suggested. |
@ishank011 How can we continue with these changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zaynetro apologies for the delay. Mostly looks good. Windows syscalls do have the ENODATA error https://golang.org/src/syscall/zerrors_windows.go. Can we use that?
@@ -9,7 +9,7 @@ require ( | |||
github.com/Masterminds/sprig v2.22.0+incompatible | |||
github.com/ReneKroon/ttlcache/v2 v2.3.0 | |||
github.com/aws/aws-sdk-go v1.37.30 | |||
github.com/c-bata/go-prompt v0.2.5 | |||
github.com/c-bata/go-prompt v0.2.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert the go-prompt upgrade? There were issues with user input with 0.2.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go-prompt update is necessary because it fixes other build errors: c-bata/go-prompt#224.
I will take a look at Windows implementation for error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay. Will try fixing it
Also
I am not sure that Windows has exact same errors as unix systems. golang.org/x/sys/windows defines completely different error types. Do you still want me to implement |
@zaynetro ah okay, we can let it be then. Can you rebase? |
Done. |
@zaynetro could you rebase? I think @ishank011 would like to get this in. |
Closes owncloud/ocis#1217 * Extracted common error methods to `errtypes` package * Fixed type error on Bavail ( https://golang.org/src/syscall/ztypes_freebsd_arm64.go#L125 ) * Alias ENODATA to ENOATTR How to test this on Linux: ``` export GOOS=freebsd make ```
Rebased. |
@micbar you had a look at the ENOATTR ENODATA and sent an upstream PR https://github.com/pkg/xattr/pull/63/files I know this PR bitrotted a bit, still @zaynetro could you retarget this PR against the |
Is there any update on this bug? |
oCIS is now building on the This fix would need to go to the edge branch. |
I've just attempted to build oCIS v2.0.0 (their stable release) on FreeBSD today and can confirm this bug is still present in reva, preventing a successful compilation.. What can I do to help speed this up? |
@joramkruijer please try the latest master. |
Thanks, that resolves the compilation issue! There's an issue preventing ocis from running due to a bug in reva, for which I've opened a pull request (#3650). |
Closes owncloud/ocis#1217
errtypes
packageStill pending:
How to test this on Linux:
UPD: go-prompt patched c-bata/go-prompt#224 (waiting for a release)