1. 01 Oct, 2017 2 commits
  2. 30 Sep, 2017 4 commits
    • Adam Langley's avatar
      encoding/asn1: respect “explicit” and “tag” when unmarshaling RawValues. · a82ee9c7
      Adam Langley authored
      Previously, any “explicit” and/or “tag” decorations on a RawValue would
      be ignored when unmarshaling. The RawValue would swallow whatever
      element was encountered.
      
      This change causes these decorations to be respected. Thus a field like:
        Foo asn1.RawValue `asn1:"explicit,tag:1,optional"`
      will only match if an explicit tag with value one is encountered.
      Otherwise the RawValue will get the default value and parsing will move
      onto the next element.
      
      Thanks to Martin Kreichgauer for reporting the issue.
      
      Change-Id: If6c4488685b9bd039cb5e352d6d75744f98dbb1f
      Reviewed-on: https://go-review.googlesource.com/34503
      Run-TryBot: Adam Langley <agl@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarAdam Langley <agl@golang.org>
      a82ee9c7
    • Russ Cox's avatar
      cmd/go: stop creating nested temp directory trees · ee4fbbc6
      Russ Cox authored
      Now that we have -importcfg, there's no need for the
      temporary directory trees that mirror the import path structure,
      and we can drop a bunch of complex code that was building
      and maintaining that structure.
      
      This should fix "file name too long" errors on systems with low limits.
      (For example #10651 and #17070, although we fixed those by
      adding code to deal with very long file names on Windows instead.)
      
      Change-Id: I11e221c6c1edeb81c3b2f1d89988f5235aa2bbb9
      Reviewed-on: https://go-review.googlesource.com/56280Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      ee4fbbc6
    • Russ Cox's avatar
      cmd/go: hide work subdirectory names in gcc/clang object files · a1fb024a
      Russ Cox authored
      Until now the subdirectories under $WORK have had predictable
      names, so it was OK to strip just $WORK from the file names that
      end up in object files. In the future, those predictable names would
      cause predictable collisions when compiling one package in two
      different ways, so we're moving toward arbitrary, unpredictable
      subdirectory names instead. When we do that, if the names appear
      in the object files we won't get reproducible builds.
      
      Take the subdirectory names out now, to make the later change safe.
      
      Change-Id: I8057d1cc73f6e35c98b7718c9789c161dcbd87c0
      Reviewed-on: https://go-review.googlesource.com/67251
      Run-TryBot: Russ Cox <rsc@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a1fb024a
    • Russ Cox's avatar
      cmd/go: rename .o files going into final .a · 1409c287
      Russ Cox authored
      CL 64793 removed the collect step, which took all
      the generated .o files and merged them into a single _all.o.
      Now the generated .o files all go directly into the final .a.
      
      The only property of the _all.o approach that was lost
      in CL 64793 was that before we could be sure that the
      one name we used was "ar-compatible", that is, short
      enough not to be truncated.
      
      Now that the generated .o files are being kept directly,
      this CL gives them guaranteed ar-compatible names.
      
      This doesn't matter for nearly all uses today, but for some
      future processing it might help not to lose the .o suffix
      or not to end up with two identical entries with truncated
      names.
      
      I might not have bothered with this except that it's what's
      leftover after syncing my own CL disabling _all.o
      (necessary for reproducible builds on macOS) against
      Ian's CL 64793, which landed first.
      
      Change-Id: Ic86ed2a51432a5a4c58dc523e092a86d341f1997
      Reviewed-on: https://go-review.googlesource.com/67250
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      1409c287
  3. 29 Sep, 2017 7 commits
  4. 28 Sep, 2017 9 commits
  5. 27 Sep, 2017 18 commits