1. 21 Aug, 2017 7 commits
  2. 20 Aug, 2017 1 commit
  3. 19 Aug, 2017 7 commits
    • Elias Naur's avatar
      Revert "misc/cgo/testcshared: temporarily skip testing on android" · ff90f4af
      Elias Naur authored
      This reverts commit a6ffab6b.
      
      Reason for revert: with CL 57290 the tests run on Android again.
      
      Change-Id: Ifeb29762a4cd0178463acfeeb3696884d99d2993
      Reviewed-on: https://go-review.googlesource.com/57310Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      ff90f4af
    • Elias Naur's avatar
      misc/cgo/testcshared: fix tests on android · a9e0204c
      Elias Naur authored
      The testcshared test.bash was rewritten in Go, but the rewritten script
      broke on Android. Make the tests run on Android again by:
      
      - Restoring the LD_LIBRARY_PATH path (.).
      - Restoring the Android specific C flags (-pie -fuse-ld=gold).
      - Adding runExe to run test executables. All other commands must run on
      the host.
      
      Fixes #21513.
      
      Change-Id: I3ea617a943c686b15437cc5c118e9802a913d93a
      Reviewed-on: https://go-review.googlesource.com/57290
      Run-TryBot: Elias Naur <elias.naur@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      a9e0204c
    • Alex Brainman's avatar
      misc/cgo/testcshared: temporarily skip testing on android · a6ffab6b
      Alex Brainman authored
      For #21513
      
      Change-Id: Ibe9479f8afc6f425779a737a807ff2f839a4f311
      Reviewed-on: https://go-review.googlesource.com/57250
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      a6ffab6b
    • Josh Bleecher Snyder's avatar
      .github: update ISSUE_TEMPLATE to be closer to 'go bug' · fc583c54
      Josh Bleecher Snyder authored
      Ask whether the issue reproduces with the latest release.
      
      'go bug' places the version and system details last,
      in part because they're automatically filled.
      I'd like to do the same here, but I worry
      that they'll get ignored.
      
      Change-Id: Iec636a27e6e36d61dca421deaf24ed6fe35d4b11
      Reviewed-on: https://go-review.googlesource.com/50931Reviewed-by: default avatarEmmanuel Odeke <emm.odeke@gmail.com>
      Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
      Reviewed-by: default avatarAvelino <t@avelino.xxx>
      fc583c54
    • Russ Cox's avatar
      cmd/go: test and fix missing deep dependencies in list Deps output · 6f0b1aa0
      Russ Cox authored
      Fixes #21522.
      
      Change-Id: Ifec1681b265576c47a4d736f6f124cc25485c593
      Reviewed-on: https://go-review.googlesource.com/57011
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      6f0b1aa0
    • Alex Brainman's avatar
      misc/cgo/testcshared: cd into work directory before running android command · e2cdec77
      Alex Brainman authored
      Hopefully this will fix android build.
      
      Maybe fixes #21513
      
      Change-Id: I98f760562646f06b56e385c36927e79458465b92
      Reviewed-on: https://go-review.googlesource.com/56790Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      e2cdec77
    • Joe Tsai's avatar
      archive/tar: refactor Reader support for sparse files · 3bece2fa
      Joe Tsai authored
      This CL is the first step (of two) for adding sparse file support
      to the Writer. This CL only refactors the logic of sparse-file handling
      in the Reader so that common logic can be easily shared by the Writer.
      
      As a result of this CL, there are some new publicly visible API changes:
      	type SparseEntry struct { Offset, Length int64 }
      	type Header struct { ...; SparseHoles []SparseEntry }
      
      A new type is defined to represent a sparse fragment and a new field
      Header.SparseHoles is added to represent the sparse holes in a file.
      The API intentionally represent sparse files using hole fragments,
      rather than data fragments so that the zero value of SparseHoles
      naturally represents a normal file (i.e., a file without any holes).
      The Reader now populates SparseHoles for sparse files.
      
      It is necessary to export the sparse hole information, otherwise it would
      be impossible for the Writer to specify that it is trying to encode
      a sparse file, and what it looks like.
      
      Some unexported helper functions were added to common.go:
      	func validateSparseEntries(sp []SparseEntry, size int64) bool
      	func alignSparseEntries(src []SparseEntry, size int64) []SparseEntry
      	func invertSparseEntries(src []SparseEntry, size int64) []SparseEntry
      
      The validation logic that used to be in newSparseFileReader is now moved
      to validateSparseEntries so that the Writer can use it in the future.
      alignSparseEntries is currently unused by the Reader, but will be used
      by the Writer in the future. Since TAR represents sparse files by
      only recording the data fragments, we add the invertSparseEntries
      function to convert a list of data fragments to a normalized list
      of hole fragments (and vice-versa).
      
      Some other high-level changes:
      * skipUnread is deleted, where most of it's logic is moved to the
      Discard methods on regFileReader and sparseFileReader.
      * readGNUSparsePAXHeaders was rewritten to be simpler.
      * regFileReader and sparseFileReader were completely rewritten
      in simpler and easier to understand logic.
      * A bug was fixed in sparseFileReader.Read where it failed to
      report an error if the logical size of the file ends before
      consuming all of the underlying data.
      * The tests for sparse-file support was completely rewritten.
      
      Updates #13548
      
      Change-Id: Ic1233ae5daf3b3f4278fe1115d34a90c4aeaf0c2
      Reviewed-on: https://go-review.googlesource.com/56771
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      3bece2fa
  4. 18 Aug, 2017 25 commits