mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 16:19:58 +00:00
TUN-9016: update go to 1.24
## Summary Update several moving parts of cloudflared build system: * use goboring 1.24.2 in cfsetup * update linter and fix lint issues * update packages namely **quic-go and net** * install script for macos * update docker files to use go 1.24.1 * remove usage of cloudflare-go * pin golang linter Closes TUN-9016
This commit is contained in:
5
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
5
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
@@ -18,6 +18,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package cgroups
|
||||
@@ -94,8 +95,12 @@ func NewMountPointFromLine(line string) (*MountPoint, error) {
|
||||
|
||||
for i, field := range fields[_miFieldIDOptionalFields:] {
|
||||
if field == _mountInfoOptionalFieldsSep {
|
||||
// End of optional fields.
|
||||
fsTypeStart := _miFieldIDOptionalFields + i + 1
|
||||
|
||||
// Now we know where the optional fields end, split the line again with a
|
||||
// limit to avoid issues with spaces in super options as present on WSL.
|
||||
fields = strings.SplitN(line, _mountInfoSep, fsTypeStart+_miFieldCountSecondHalf)
|
||||
if len(fields) != fsTypeStart+_miFieldCountSecondHalf {
|
||||
return nil, mountPointFormatInvalidError{line}
|
||||
}
|
||||
|
Reference in New Issue
Block a user