Skip to content
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

Remove impossible unix buildconstraint #95

Merged
merged 1 commit into from
Feb 26, 2023
Merged

Remove impossible unix buildconstraint #95

merged 1 commit into from
Feb 26, 2023

Conversation

iamleot
Copy link
Contributor

@iamleot iamleot commented Feb 26, 2023

Given the filename with the _GOOS suffix this file can be build only on linux (most other Unix-es should be already handled via permission_{darwin,linux}.go).

NFCI.

Given the filename with the _GOOS suffix this file can be build only on
linux (most other Unix-es should be already handled via
permission_{darwin,linux}.go).

NFCI.
@iamleot iamleot marked this pull request as ready for review February 26, 2023 16:15
@iamleot
Copy link
Contributor Author

iamleot commented Feb 26, 2023

To elaborate a bit further... according go help buildconstraints the *_GOOS files can already be built only on that GOOS so the || unix will be never satisfied on non-Linux unix OSes.

Apart that the file already have Linuxisms so is not suitable to any other Unix-es.

(Noticed while inspecting older version of this code due build failures on NetBSD)

@Mzack9999 Mzack9999 merged commit 1088141 into projectdiscovery:main Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants