-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
filesystem & binaryplatforms: remove undefined vars from exports #43631
Conversation
These are never defined. They show up as noise during the ambiguity test.
Could we add a CI job that fails if there are undefined exports? I know that Aqua.jl has a similar functionality for package tests. It would be nice to have something like that for Base and stdlibs. |
We could add that to |
That seems like a good idea.
Ideally, we would fix our "detect undefined names" tooling to correctly detect globals that are defined inside functions. |
Ref #28693. Maybe the test stopped working. |
Should still work. None of these names were exported by Base, they were exported by internal modules. |
Ah, I see. |
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.
This was a breaking change. We can define this to have a value (0o000?), but cannot delete them now.
JL_O_TEMPORARY, | ||
JL_O_SHORT_LIVED, | ||
JL_O_SEQUENTIAL, | ||
JL_O_RANDOM, |
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.
These are defined, just perhaps not on your system: https://github.com/JuliaLang/julia/blob/master/src/file_constants.h
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.
On second thought, we should perhaps switch to the correct names for them (e.g. http:https://docs.libuv.org/en/v1.x/fs.html#c.UV_FS_O_SEQUENTIAL)
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.
I'll leave the choice to you, and just revert this change (#43817)
…ang#43817) * Revert "filesystem & binaryplatforms: remove undefined vars from exports (JuliaLang#43631)" This reverts commit a3c2798. * Enable suppression of warnings in ambiguity & undefined tests
…ang#43817) * Revert "filesystem & binaryplatforms: remove undefined vars from exports (JuliaLang#43631)" This reverts commit a3c2798. * Enable suppression of warnings in ambiguity & undefined tests
…ang#43817) * Revert "filesystem & binaryplatforms: remove undefined vars from exports (JuliaLang#43631)" This reverts commit a3c2798. * Enable suppression of warnings in ambiguity & undefined tests
These are never defined. They show up as noise during the ambiguity test.