aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-13[release-branch.go1.11] go1.11rc1go1.11rc1Filippo Valsorda
Change-Id: I3bb2ad8f9f7283d76aa7d8999aa08c9f740c7b5d Reviewed-on: https://go-review.googlesource.com/129236 Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-13net/http: support configuring fetch optionsJohan Brandhorst
The default WASM RoundTripper is implemented using the browser Fetch API. Some options don't readily map to existing http.Request options, so we use the precedent set by the TrailerPrefix constant to allow a user to configure the "mode" and "credentials" options by supplying them as headers in the http.Request. Updates #26769 Change-Id: If42d24418c4ffb17211f57e36708cf460fb4c579 GitHub-Last-Rev: b230502084d628938cd50818d3d336f9f911d48d GitHub-Pull-Request: golang/go#26784 Reviewed-on: https://go-review.googlesource.com/127718 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-13net/http: update request cancelation docsBrad Fitzpatrick
Fixes #26101 Change-Id: Id4def032b846257d2de992b7561ac90a17e08b91 Reviewed-on: https://go-review.googlesource.com/129155 Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-08-13doc: update the primary security coordinator to filippo@Filippo Valsorda
Fixes #26876 Change-Id: Ibef4e305bead1432c6a02bc2507f8000c2f4b892 Reviewed-on: https://go-review.googlesource.com/129064 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-12A+C: second and final round of updates for Go 1.11Filippo Valsorda
Updates #12042 Change-Id: Ia8d2214caad50560c4d46d723f8b94c954059b98 Reviewed-on: https://go-review.googlesource.com/128877 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-10cmd/go: don't let ... match GOROOT/src/cmd in module modeRuss Cox
GOROOT/src/cmd uses GOROOT/src/cmd/vendor, which module mode simply cannot handle. Exposed by making ... match the standard library, which it still should. But for now it's fine to just exclude commands. Change-Id: I2201b94445f11239022de8a2473aa3b573f405c0 Reviewed-on: https://go-review.googlesource.com/129055 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-10cmd/go: report implicit cgo inputs in go list -compiledRuss Cox
Tools using go list -compiled expect to see an Imports list that includes all the imports in CompiledGoFiles. Make sure the list includes the cgo-generated imports. Fixes #26136. Change-Id: I6cfe14063f8edfe65a7af37522c7551272115b82 Reviewed-on: https://go-review.googlesource.com/128935 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix module ... pattern to match standard libraryRuss Cox
The non-module ... pattern always has. Fixes #26905. Change-Id: I7b298747fb33b82c58d3e6a6bc6687b6e825e52c Reviewed-on: https://go-review.googlesource.com/128997 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: do not try to understand git fetch --depth=1 errorsRuss Cox
We used to try a git fetch --depth=1 of a specific hash and distinguish between an error meaning "that's not a hash I can give you directly" (in which case we fall through and pull the whole repo) and some other error like connection failure, bad ssh key (in which case we give up). We've had repeated problems trying to understand the error meanings so just stop doing that, and fall back to trying a full fetch on any error at all. If the error really was some kind of network or auth or i/o problem, then it will happen the second time and we can report it then. Fixes #26894. Change-Id: If1eaaddb87e8bfeff7a3894cce4ecef39802198c Reviewed-on: https://go-review.googlesource.com/128904 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: display cached compiler output more oftenRuss Cox
CL 77110 arranged for caching and redisplaying compiler output when reusing a compile artifact from the build cache. It neglected to redisplay compiler and linker output when avoiding the compile and link steps by reusing the target output binary as a cached result. It also neglected to redisplay compiler and linker output when avoiding the compile and link (and test) steps by reusing cached test output. This CL brings back the compiler and linker output in those two cases, provided it can be found in the build cache. If it can't be found in the build cache, then the go command still reuses the binaries and avoids the compile/link/test steps. (It's not worth doing all that work again just to repeat diagnostic output.) Fixes #23877. Change-Id: I25bc054d93a88c039bcb8c5683fe4ac5cb1ee544 Reviewed-on: https://go-review.googlesource.com/128903 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix spelling in proxy documentationTobias Klauser
After running mkalldocs.sh this also adds some previously missing parts to alldocs.go Change-Id: Ifa624c54543fd31d699a0d4bb5df7b1969bf941c Reviewed-on: https://go-review.googlesource.com/128915 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix handling of gopkg.in/macaroon-bakery.v2-unstableRuss Cox
When we added v2.0.0+incompatible we generalized the API enough to make it easy to also accepting these gopkg-specific v2-unstable suffixes. Do that. Fixes #23989. Change-Id: Ieabed11a5250c2999d73450c10b20f4c645ad445 Reviewed-on: https://go-review.googlesource.com/128901 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix install target name for versioned binariesRuss Cox
For a package in the module root, using the containing directory name might mean the directory in the module cache, in which case the executable has a final @v1.2.3 in it, which is no good. Fix that. While we're here, change go install example.com/cmd/foo/v2 to install foo instead of the less useful "v2". Fixes #24667. Fixes #26869. Change-Id: Ie40ca1bc9e27955441f1cdb7abd3a1f69034c9f5 Reviewed-on: https://go-review.googlesource.com/128900 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix go.mod corruption using -mod=vendorRuss Cox
If we're using -mod=vendor then we effectively load a fake build list from vendor/modules.txt. Do not write it back to go.mod. Fixes #26704. Change-Id: Ie79f2103dc16d0b7fe0c884e77ba726c7e04f2e4 Reviewed-on: https://go-review.googlesource.com/128899 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: add go mod whyRuss Cox
A very common question is "why is this package or module being kept by go mod vendor or go mod tidy?" go mod why answers that question. Fixes #26620. Change-Id: Iac3b6bbdf703b4784f5eed8e0f69d41325bc6d7f Reviewed-on: https://go-review.googlesource.com/128359 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: fix module loader and test-only dependenciesRuss Cox
go list all was not behaving as documented - it did not pick up test dependencies except when running in "go test" and "go vet". It should pick them up always. Also the module loader was ignoring tests when using "go list -test", which led to load failures. Fixing all required adjustments to mod_patterns test. Removed error-prone exact listings. Fixes #26279. Fixes #26906. Change-Id: I9c5acaf2275be20fd2349859589502190d3e7a78 Reviewed-on: https://go-review.googlesource.com/128358 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-10cmd/go: make 'go list -test' report the correct import pathSuzy Mueller
When a test variant of a package is created, the two versions cannot share memory for the fields that contain information about their imports, as these will be different between the two packagse. Both the Internal.Imports and the Imports fields must be able to be updated in the test variant without affecting the values of the original. Fixes golang/go#26880 Change-Id: Id61fad7d976e179c6c7711a394ce43ec8302fd7a Reviewed-on: https://go-review.googlesource.com/128836 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-10cmd/go: add go mod downloadRuss Cox
go mod download provides a way to force downloading of a particular module version into the download cache and also to locate its cached files. Forcing downloads is useful for warming caches, such as in base docker images. Finding the cached files allows caching proxies to use go mod download as the way to obtain module files on cache miss. Fixes #26577. Fixes #26610. Change-Id: Ib8065bcce07c9f5105868ec1d87887ef4871f07e Reviewed-on: https://go-review.googlesource.com/128355 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
2018-08-09doc/go1.11: add note about vet checks for printf wrappersAndrew Bonventre
Fixes golang/go#26372 Change-Id: I30716ba56f829c6e36ccd50471e118084bad7360 Reviewed-on: https://go-review.googlesource.com/128902 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09runtime: fix TestGdbPythonCgo failure with ld.goldDaniel Martí
See the added comment for the reasoning behind the workaround. Fixes #26868. Change-Id: Idede020ec88a49595dc233d9a1346b12691186f4 Reviewed-on: https://go-review.googlesource.com/128815 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-09cmd/compile: update delve's reference data for ssa/debug_testDavid Chase
Recent versions of Delve pay attention to the debugging changes for 1.11, which causes different (better!) debugging behavior. Update the reference data to reflect this. Change-Id: I2efa165aa71769ace9f7885b4ce3420cd9b2d3a3 Reviewed-on: https://go-review.googlesource.com/128697 Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-09cmd/go: include experiments in compiler tool IDIan Lance Taylor
No test because testing this would require building a new toolchain with a different experiment. Fixes #26883 Change-Id: Iadd513d0920ef12463006dd2a61e94370dd13f68 Reviewed-on: https://go-review.googlesource.com/128735 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-09cmd/go: skip TestScript/mod_patterns on nocgo buildersBryan C. Mills
Updates #26906. Change-Id: I61b08180aefe9cfc109a1009ca251ee6970eb2df Reviewed-on: https://go-review.googlesource.com/128879 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-09cmd/go/internal/modload: emit correct module in duplication errorBryan C. Mills
Updates #26904. Change-Id: If7f381c3f3a41bd62c5f8bcf4f92720badcaf5c6 Reviewed-on: https://go-review.googlesource.com/128878 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go: test package patterns with multiple modulesBryan C. Mills
This change replaces https://golang.org/cl/125835. Updates #26317. Change-Id: I38ae1f93e5f5c86737a4b489df498c18b179781d Reviewed-on: https://go-review.googlesource.com/128637 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go/internal: factor out modload.QueryPackage and use in in modgetBryan C. Mills
modload.Import contains a loop that looks for the module containing a package. Because we overload Import to locate both packages and modules, that loop contains a bunch of special-cases for modules with empty roots. In this change, we factor out the loop into a new function (QueryPackage) and use that directly in modget.getQuery. That restores the invariant that the paths passed to modload.Import must be importable packages, and fixes 'go get' lookups for packages that have moved between a module and submodules with the same path prefix. Updates #26602. Change-Id: I8bc8340c17f2df062d03ce720f4dc18b2ba406b2 Reviewed-on: https://go-review.googlesource.com/128136 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go/internal/modload: report errors explicitly from LookupBryan C. Mills
Previously, we reported errors directly in (*loader).load via base.Errorf. Unfortunately, (*loader).load can be called from contexts in which such errors should not be considered fatal, such as by load.PackagesAndErrors. Instead, we save the errors in pkg.err and modify Lookup to return that error. This change is a bit awkward: we end up suppressing a "no Go files" error for packages at the root of newly-imported modules, even if they really do contain source files. I believe that that's due to a special-case lookup for modules in the build list, which allows us to "validate" imports for modules in the build list even though we haven't actually downloaded their sources (or verified that they actually contain the requested package). The fix for that issue is in the change that follows this one. Fixes #26602. Change-Id: I16f00ceb143fbb797cfc3cb07fd08aeb6154575b Reviewed-on: https://go-review.googlesource.com/127936 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-09go/types: fix errors in recording type informationRebecca Stambler
In my previous change, I didn't use the correct functions for continuing to record type informations after errors. Change to using the correct functions, and add a comment to clarify in expr.go. Updates #22467 Change-Id: I66ebb636ceb2b994db652343430f0551db0050c3 Reviewed-on: https://go-review.googlesource.com/128835 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-09cmd/go: test that 'go get pkg@version' installs pkgBryan C. Mills
This test passes, but it encodes several behaviors that I think are bugs. I suggest that we check it in as-is, and we can update it as the bugs are fixed. Change-Id: Icb073de9cb13036dbccadb4ff2cb3169ffb56236 Reviewed-on: https://go-review.googlesource.com/128137 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go: add test for 'go get' within a local moduleBryan C. Mills
Change-Id: I16d36c8e22c84a3266520d86e41ff71ef826ae70 Reviewed-on: https://go-review.googlesource.com/128555 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go: add test cases for 'go list' with bad import pathsBryan C. Mills
Change-Id: I45a675c5f699b23284a2a50b33cb22882f4b3b80 Reviewed-on: https://go-review.googlesource.com/128016 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09cmd/go: fetch history as needed to resolve recent tagsBryan C. Mills
Fixes #26713. Tested with Git 2.7.4. Older Gits may or may not work. Change-Id: Ib72d751388dfbb50030191ae40f788d1402834b2 Reviewed-on: https://go-review.googlesource.com/126956 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-09go/printer: make empty lines break table alignmentDaniel Martí
In previous versions of Go including 1.10, an empty line would break the alignment of elements within an expression list. golang.org/cl/104755 changed the heuristic, with the side effect that empty lines no longer broke the table alignment. Reintroduce the behavior and add a regression test for it. Fixes #26352. Change-Id: I410bcff4cba25c7f8497d46bd7890a2c7ee11d46 Reviewed-on: https://go-review.googlesource.com/125260 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
2018-08-09A+C: first round of automated updates for Go 1.11 and missing AUTHORSFilippo Valsorda
One first round of low-hanging fruit, excluding anything unclear. Also fixed a bug where, if a contributor had different emails under different CLAs, only the first one was added to AUTHORS. Updates #12042 Change-Id: Id7b06c885d74b4718ef2d74d149513a7c0f40c91 Reviewed-on: https://go-review.googlesource.com/126215 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-08doc.Example should not worry about unresolved blank identifiersMostyn Bramley-Moore
https://golang.org/pkg/bufio/#example_Scanner_custom is not directly runnable in the playground via godoc, but if I copy+paste the code into https://play.golang.org/ then it runs just fine. This seems to be due to the blank identifier being considered unresolved in the following line in the example: _, err = strconv.ParseInt(string(token), 10, 32) But that's the whole point of blank identifiers- they're not supposed to be resolved. So let's skip adding the blank identifier to doc.playExample's unresolved map. Fixes #26447 Change-Id: I52bc7d99be1d14a61dc012d10c18349d52ba4c51 GitHub-Last-Rev: 9172e9dc1378b0f37f96fc2e1ade4dda9d848398 GitHub-Pull-Request: golang/go#26448 Reviewed-on: https://go-review.googlesource.com/124775 Reviewed-by: Robert Griesemer <gri@golang.org>
2018-08-08doc/contribute: add examples for finding issues on the issue trackerLeigh McCulloch
For contributors looking for new issues to contribute to it can be difficult to find issues that need a fix and don't already have a fix being considered. There are several labels that help guide the way already, like `NeedsFix`, `HelpWanted`. But many issues with this label will already have a CL. For new contributors this can be especially difficult. Fixes #26494 Change-Id: Ifd38ea65e362b4c580207a06f959646e49ac594f GitHub-Last-Rev: 6d2b54447b2ee754a6d025f5de3ebd8326e035eb GitHub-Pull-Request: golang/go#26516 Reviewed-on: https://go-review.googlesource.com/125355 Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-08go/types: if base type for an alias is known, use it when neededRobert Griesemer
Because methods are type-checked before the receiver base type is "complete" (i.e., they are checked as part of the receiver base type), situations occur where aliases of those base types are used (in those methods) but the alias types are not known yet (even though their base types are known). This fix is a temporary work-around that looks syntactically for the base types of alias types and uses those base types when we refer to an "incomplete" alias type. The work-around is completely localized and guarded with a flag so it can be disabled at short notice. The correct fix (slated for 1.12) is to decouple type-checking of methods from their receiver base types. See issue #26854. Fixes #26390. Change-Id: I66cc9d834b220c254ac00e671a137cf8a3da59c1 Reviewed-on: https://go-review.googlesource.com/128435 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
2018-08-08A+C: update Dmitri Shuralyov's emailsDmitri Shuralyov
Add my current personal email in both A+C, but keep old one too. Add my @golang.org email to CONTRIBUTORS. Change-Id: Idba258e465a8d657372dbeb6cb734744d493e5d4 Reviewed-on: https://go-review.googlesource.com/128416 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-08net: reduce TestSplice/big's memory usageDaniel Martí
The old code used splice on a 2GB []byte when not in short mode, meaning that running 'go test net' when one had 4GB or less free memory would easily result in "out of memory" runtime panics. Instead, use a much smaller size that is still big enough to not fit into a single splice(2) syscall. The new size is just 5MB, so the test uses a fraction of the memory it used to, and there's no longer a need for a different size on short mode. This also speeds up the test, which goes from ~1.23s to ~0.01s on my laptop. Fixes #26867. Change-Id: Iae1daa5c0995b549f41992f44339be32ca1ee5e4 Reviewed-on: https://go-review.googlesource.com/128535 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Andrei Tudor Călin <mail@acln.ro> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-07cmd/go: 3 cmd/go tests (>8s) made as non-short scriptsGn Shivakumar
* TestAtomicCoverpkgAll -> Script/cover_atomic_pkgall.txt and make it * non-short * TestCoverpkgAllRuntime -> Script/cover_pkgall_runtime.txt and make it * non-short * TestCpuprofileTwice -> Script/cpu_profile_twice.txt and make it * non-short * TestGoTestMainTwice -> make it non-short Updates #26472 Change-Id: I24f3d4c2a8b6e317adb369a1b1426e693f9571ed Reviewed-on: https://go-review.googlesource.com/126636 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-07cmd/go: make 'go get <module>@none' idempotentBryan C. Mills
Before this change, 'go get <module>@none' for a module not in the build list would add the module to go.mod (with the explicit version string "none"). Subsequent go commands would fail with 'invalid module version "none"'. Change-Id: Iebcaeab89eb19959f0a9aeda836f179962953313 Reviewed-on: https://go-review.googlesource.com/127215 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-07cmd/go/internal/load: remove unused argument from LookupBryan C. Mills
Change-Id: Ia2948a88c6d45a31be17b3d7415559cd53c289ce Reviewed-on: https://go-review.googlesource.com/128015 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-07cmd/go/internal/load: pass the importer's package path when checking visibilityBryan C. Mills
A module like "gopkg.in/macaroon.v2" might have a test with a "_test" package suffix (see https://golang.org/cmd/go/#hdr-Test_packages). When we compile that test, its ImportStack entry includes the "_test" suffix even though nothing else can actually import it via that path. When we look up the module containing such a package, we must use the original path, not the suffixed one. On the other hand, an actual importable package may also be named with the suffix "_test", so we need to be careful not to strip the suffix if it is legitimately part of the path. We cannot distinguish that case by examining srcDir or the ImportStack: the srcDir contaning a module doesn't necessarily bear any relationship to its import path, and the ImportStack doesn't tell us whether the suffix is part of the original path. Fortunately, LoadImport usually has more information that we can use: it receives a parent *Package that includes the original import path. Fixes #26722 Change-Id: I1f7a4b37dbcb70e46af1caf9a496dfdd59ae8b17 Reviewed-on: https://go-review.googlesource.com/127796 Reviewed-by: Russ Cox <rsc@golang.org>
2018-08-07cmd/go: fix outdated commentsBryan C. Mills
Change-Id: I09532546c96b3758f76528fb5010dafc638139b8 Reviewed-on: https://go-review.googlesource.com/128135 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-07syscall/js: extend ValueOf to support arrays and objectsRichard Musiol
This commits adds []interface{} and map[string]interface{} as quick ways to create JavaScript arrays and objects. They correspond to the JavaScript notations [...] and {...}. A type alias can be used for a concise notation. Change-Id: I98bb08dbef1e0f3bd3d65c732d6b09e1520026ba Reviewed-on: https://go-review.googlesource.com/126855 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-06cmd/asm/internal/arch: add package definitionMario Arranz
The package arch didn't have a definition as you can see in https://tip.golang.org/pkg/cmd/asm/internal/arch/ Change-Id: I07653b396393a75c445d04dbae5e22e90a0d5133 GitHub-Last-Rev: a859e9410f38073853687b933f53eb6570af3216 GitHub-Pull-Request: golang/go#26817 Reviewed-on: https://go-review.googlesource.com/127929 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-06doc: describe cgo ptr->uintptr changes for 1.11.Keith Randall
Fixes #26721 Change-Id: Icc4660327a9ba668c88f8d9e0b9f206ba8f6dc27 Reviewed-on: https://go-review.googlesource.com/127975 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-06cmd/go: fix go get fail when GIT_TRACE setLE Manh Cuong
GIT_TRACE write message to stderr, while run1 merge both stdout and stderr. So function which call run1 and rely on its output will failed to parse the result when run1 success. By using cmd.Output(), we ensure only cmd standard out is returned. Fixes #19682 Change-Id: I7002df17fe68aea1860ddc7382c68cc23548bd90 Reviewed-on: https://go-review.googlesource.com/126735 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-04cmd/go: fix unnecessary pluralKevin Burke
"expanded imports paths" should read "expanded import paths." Run mkalldocs.sh to pick up other changes which were not committed to alldocs.go. Change-Id: Iaa61e022d65f9464e8ff93a92cfba27dadf679cf Reviewed-on: https://go-review.googlesource.com/127157 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-08-03cmd/internal/objfile: only consider executable segments for load addressIan Lance Taylor
Reportedly on some new Fedora systems the linker is producing extra load segments, basically making the dynamic section non-executable. We were assuming that the first load segment could be used to determine the program's load offset, but that is no longer true. Use the first executable load segment instead. Fixes #26369 Change-Id: I5ee31ddeef2e8caeed3112edc5149065a6448456 Reviewed-on: https://go-review.googlesource.com/127895 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>