1. 21 Nov, 2019 4 commits
    • Jay Conrod's avatar
      cmd/go: report an error for 'go list -m ...' outside a module · 24348698
      Jay Conrod authored
      Previously, we just reported an error for "all". Now we report an
      error for any pattern that matches modules in the build list. The
      build list can only contain the module "command-line-arguments", so
      these patterns are not meaningful.
      
      Fixes #35728
      
      Change-Id: Ibc736491ec9164588f9657c09d1b9683b33cf1de
      Reviewed-on: https://go-review.googlesource.com/c/go/+/208222
      Run-TryBot: Jay Conrod <jayconrod@google.com>
      Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
      Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      24348698
    • Cherry Zhang's avatar
      runtime: relax TestAsyncPreempt · 37715cce
      Cherry Zhang authored
      In TestAsyncPreempt, the function being tested for preemption,
      although still asynchronously preemptible, may have only samll
      ranges of PCs that are preemtible. In an unlucky run, it may
      take quite a while to have a signal that lands on a preemptible
      instruction. The test case is kind of an extreme. Relax it to
      make it more preemptible.
      
      In the original version, the first closure has more work to do,
      and it is not a leaf function, and the second test case is a
      frameless leaf function. In the current version, the first one
      is also a frameless leaf function (the atomic is intrinsified).
      Add some calls to it. It is still not preemptible without async
      preemption.
      
      Fixes #35608.
      
      Change-Id: Ia4f857f2afc55501c6568d7507b517e3b4db191c
      Reviewed-on: https://go-review.googlesource.com/c/go/+/208221
      Run-TryBot: Cherry Zhang <cherryyz@google.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      37715cce
    • jinmiaoluo's avatar
      net/url: update net/url split comment · c7e73ef6
      jinmiaoluo authored
      Fixes #35735
      
      Change-Id: I4618ffcd1bcf9a7506468b9a1443bc4a2f7f3138
      GitHub-Last-Rev: edaf780d3d8b4e01f3dd6750275ff50a39eb2113
      GitHub-Pull-Request: golang/go#35736
      Reviewed-on: https://go-review.googlesource.com/c/go/+/208297Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      c7e73ef6
    • Andrew's avatar
      all: base64-encode binaries that will cause Apple notarization to fail · 8bbfc51d
      Andrew authored
      Starting with macOS 10.15 (Catalina), Apple now requires all software
      distributed outside of the App Store to be notarized. Any binaries we
      distribute must abide by a strict set of requirements like code-signing
      and having a minimum target SDK of 10.9 (amongst others).
      
      Apple’s notarization service will recursively inspect archives looking to
      find notarization candidate binaries. If it finds a binary that does not
      meet the requirements or is unable to decompress an archive, it will
      reject the entire distribution. From cursory testing, it seems that the
      service uses content sniffing to determine file types, so changing
      the file extension will not work.
      
      There are some binaries and archives included in our distribution that
      are being detected by Apple’s service as potential candidates for
      notarization or decompression. As these are files used by tests and some
      are intentionally invalid, we don’t intend to ever make them compliant.
      
      As a workaround for this, we base64-encode any binaries or archives that
      Apple’s notarization service issues a warning for, as these warnings will
      become errors in January 2020.
      
      Updates #34986
      
      Change-Id: I106fbb6227b61eb221755568f047ee11103c1680
      Reviewed-on: https://go-review.googlesource.com/c/go/+/208118
      Run-TryBot: Andrew Bonventre <andybons@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      8bbfc51d
  2. 20 Nov, 2019 10 commits
  3. 19 Nov, 2019 21 commits
  4. 18 Nov, 2019 5 commits