-
Notifications
You must be signed in to change notification settings - Fork 10
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
Zero Descriptor UID/GID (V2) #61
Conversation
Force UID/GID values to zero.
Codecov Report
@@ Coverage Diff @@
## master #61 +/- ##
==========================================
+ Coverage 69.82% 70.16% +0.34%
==========================================
Files 25 25
Lines 1922 1904 -18
==========================================
- Hits 1342 1336 -6
+ Misses 390 384 -6
+ Partials 190 184 -6
Continue to review full report at Codecov.
|
These are now always set to zero, and marked as deprecated. Remove from human-readable output to reflect the change.
Update to reflect deprecation of UID/GID fields. Keeping the UID/GID tests, since these are still relevant in terms of descriptor integrity.
Since |
We could, although it's worth noting that the v1 API does use Lines 227 to 232 in 08f0698
I have a slight preference for keeping it zero value, for no other reason than it being Go's default value, which reduces the number of references required to deprecated fields in tests that simulate the default behaviour (for example in the Does that make sense? |
Fair enough. It is one of those areas where it's pretty awkward that the default value is a meaningful one here, but this doesn't seem to have been used anywhere. |
Mark
UID
/GID
fields deprecated intype Descriptor struct
, and set values to zero. Remove UID/GID values frominfo
command output. Updateintegrity
package tests to begin with zero value UID/GID. Don't consider deprecated UID/GID fields inGetFromDescr
.Closes #59