You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should os.ModeCharDevice be taken into account? #139
Due to a change in Go 1.12, some file modes are no longer being returned as os. ModeDevice, but as os.ModeCharDevice. This caused pulling images to break on docker (moby/moby#38404 (comment)).
I'm not very familiar with this repository, but a quick search showed some similar uses in this package, so I suspect some of those will have to be updated accordingly.
Ok, so the approach here is more defensive than the variation in Moby; os.ModeCharDevice will always be set in combination with os.ModeDevice.
The code in this repository checks if os.ModeDevice (irregardless of it being a os.ModeCharDevice or not), whereas the Moby code checks for an exact match, expecting onlyos.ModeDevice to be set, therefore causing it to break with Go 1.12.
Activity
thaJeztah commentedon Feb 19, 2019
ping @cpuguy83 @AkihiroSuda @tonistiigi @dmcgowan PTAL
thaJeztah commentedon Feb 19, 2019
Ok, so the approach here is more defensive than the variation in Moby;
os.ModeCharDevicewill always be set in combination withos.ModeDevice.The code in this repository checks if
os.ModeDevice(irregardless of it being aos.ModeCharDeviceor not), whereas the Moby code checks for an exact match, expecting onlyos.ModeDeviceto be set, therefore causing it to break with Go 1.12.