aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-03-28doc: added The Go image package articleFrancisco Souza
Orignally published on The Go Programming Language, September 21, 2011. http://blog.golang.org/2011/09/go-image-package.html Update #2547 R=adg, nigeltao CC=golang-dev https://golang.org/cl/5933049
2012-03-28path/filepath: correct comment in EvalSymlinksAlex Brainman
R=golang-dev, r CC=golang-dev, hcwfrichter https://golang.org/cl/5934046
2012-03-28cmd/godoc: use virtual filesystem to implement -templates flagAndrew Gerrand
R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/5921045
2012-03-27runtime: work around false negative in deadlock detectionRuss Cox
Not a complete fix for issue 3342, but fixes the trivial case. There may still be a race in the instants before and after a scavenger-induced garbage collection. Intended to be "obviously safe": a call to runtime·gosched before main.main is no different than a call to runtime.Gosched at the beginning of main.main, and it is (or had better be) safe to call runtime.Gosched at any point during main. Update #3342. R=iant CC=golang-dev https://golang.org/cl/5919052
2012-03-27cmd/go: respect $GOBIN alwaysRuss Cox
Another attempt at https://golang.org/cl/5754088. Before, we only consulted $GOBIN for source code found in $GOROOT, but that's confusing to explain and less useful. The new behavior lets users set GOBIN=$HOME/bin and have all go-compiled binaries installed there. Tested a few cases in test.bash. Ran all.bash with and without $GOBIN and it works. Even so, I expect it to break the builders, like it did last time, we can debug from there. Fixes #3269 (again). Fixes #3396. Fixes #3397. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5927051
2012-03-27go/build: fix import checkRuss Cox
When we find a package in DIR/src/foo, we only let it be known as foo if there is no other foo in an earlier GOPATH directory or the GOROOT directory. The GOROOT check was looking in GOROOT/src/foo instead of GOROOT/src/pkg/foo, which meant that the import paths "lib9", "libbio", "libmach", and so on were unavailable, and the import paths "math", "errors", and so on were available. Correct this. Fixes #3390. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/5927050
2012-03-27cmd/go: fix two bugsRuss Cox
Issue 3207 was caused by setting GOPATH=GOROOT. This is a common mistake, so diagnose it at command start and also correct the bug that it caused in get (downloading to GOROOT/src/foo instead of GOROOT/src/pkg/foo). Issue 3268 was caused by recognizing 'packages' that had installed binaries but no source. This behavior is not documented and causes trouble, so remove it. We can revisit the concept of binary-only packages after Go 1. Fixes #3207. Fixes #3268. R=golang-dev, r CC=golang-dev https://golang.org/cl/5930044
2012-03-27path/filepath: use windows GetShortPathName api to force GetLongPathName to ↵Alex Brainman
do its work R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5928043
2012-03-27cmd/go: update for go1 tag formatRuss Cox
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5919048
2012-03-27cmd/dist: fix detection of go1 versionRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5924044
2012-03-27net: ignore ECONNABORTED from syscall.AcceptDevon H. O'Dell
Fixes #3395. R=rsc, dsymonds CC=golang-dev https://golang.org/cl/5905063
2012-03-27undo CL 5844051 / 5d0322034aa8Mikio Hara
Breaks closure test when GOMAXPROCS=2 or more. ««« original CL description runtime: restore deadlock detection in the simplest case. Fixes #3342. R=iant, r, dave, rsc CC=golang-dev, remy https://golang.org/cl/5844051 »»» R=rsc CC=golang-dev https://golang.org/cl/5924045
2012-03-26cmd/go: copy tag_test.go from goinstallRuss Cox
hg cat -r 11846 src/cmd/goinstall/tag_test.go >tag_test.go No changes. R=golang-dev, r CC=golang-dev https://golang.org/cl/5919047
2012-03-26runtime: restore deadlock detection in the simplest case.Rémy Oudompheng
Fixes #3342. R=iant, r, dave, rsc CC=golang-dev, remy https://golang.org/cl/5844051
2012-03-27path/filepath: convert drive letter to upper case in windows EvalSymlinksAlex Brainman
Fixes #3347. R=golang-dev, aram, r, rsc CC=golang-dev https://golang.org/cl/5918043
2012-03-27cmd/godoc: canonicalize custom path redirectsAndrew Gerrand
For example, /ref and /doc/reference.html now both redirect to /ref/. Fixes #3401. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5916044
2012-03-27cmd/godoc: fix app engine versionAndrew Gerrand
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5902060
2012-03-26exp/types: generalized GCImporter API.Robert Griesemer
- Renamed ExportData -> FindGcExportData and base it on an a bufio.Reader rather than a filename so it can be used in environments where object files are stored elsewhere. - Factor former GcImporter into GcImportData and GcImport. Implementations with different storage locations for object files can build a customized GcImport using GcImportData. This is pkg/exp only - no impact on Go 1. R=golang-dev, lvd, rsc CC=golang-dev https://golang.org/cl/5574069
2012-03-26cmd/go: explain versions betterRob Pike
Summarize the desiderata for selecting versions of remote packages to get. Fixes #3394. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5902058
2012-03-26run.bash: set -e in new codewalk blockRob Pike
Otherwise we won't fail if something goes wrong. This shell programming stuff is tricky. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5905062
2012-03-26run.bash: compile the codewalksRob Pike
They could be tested but that requires more than seems wise right now. Update #2648. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5908054
2012-03-26cmd/go: allow underscores in tool nameShenghou Ma
Otherwise we can't invoke go_bootstrap directly. R=golang-dev, r CC=golang-dev https://golang.org/cl/5900061
2012-03-26go/build: cgoEnabled is not known to cmd/dist anymoreShenghou Ma
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5901051
2012-03-26cmd/go: add missing error checkEvan Shaw
R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/5874055
2012-03-24os: add missing byte to FileMode bufferStefan Nilsson
32 bytes is enough for all FileMode bits. R=golang-dev, r CC=golang-dev https://golang.org/cl/5853044
2012-03-23text/template: fix typo in package commentRobert Griesemer
Fixes #3383. R=iant, bradfitz CC=golang-dev https://golang.org/cl/5891045
2012-03-23crypto/tls: don't select ECC ciphersuites with no mutual curve.Adam Langley
The existing code that tried to prevent ECC ciphersuites from being selected when there were no mutual curves still left |suite| set. This lead to a panic on a nil pointer when there were no acceptable ciphersuites at all. Thanks to George Kadianakis for pointing it out. R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/5857043
2012-03-23path/filepath: windows drive letter cannot be a digitAlex Brainman
R=golang-dev, r CC=golang-dev, mattn.jp https://golang.org/cl/5885056
2012-03-22cmd/gc: fix comment typo, assignment spacingIan Lance Taylor
R=bradfitz, gri, lvd CC=golang-dev https://golang.org/cl/5874053
2012-03-22cmd/gc: when expanding append inline, preserve argumentsIan Lance Taylor
Fixes #3369. R=golang-dev, gri, lvd, r CC=golang-dev https://golang.org/cl/5876044
2012-03-22sort: add time complexity to docStefan Nilsson
Let's tell the world that Go's sort is O(n log n). Surely this is a feature we intend to keep. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5867045
2012-03-22doc: add JSON and Go articleFrancisco Souza
Originally published on The Go Programming Language Blog, January 25, 2011. http://blog.golang.org/2011/01/json-and-go.html R=adg CC=golang-dev https://golang.org/cl/5846044
2012-03-22flag: add examplesRob Pike
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5867049
2012-03-21exp/norm/normalize.go: fix typoRobert Griesemer
R=golang-dev, r, dsymonds CC=golang-dev https://golang.org/cl/5874045
2012-03-22go/build: clarify why we exclude files starting with '_' or '.'Shenghou Ma
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5864053
2012-03-21godoc: use shorter titles for tabsRobert Griesemer
In a browser with many open tabs, the tab titles become short and uninformative because they all start with the same prefix ("Package ", "Directory ", etc.). Permit use of shorter tab titles that start with the relevant information first. Fixes #3365. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5865056
2012-03-21cmd/cgo: fix handling of errno for gccgoIan Lance Taylor
Fixes #3332. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5868047
2012-03-21build: lengthen timeout for the lengthy runtime testShenghou Ma
To fix build on (overheated) Linux/ARM builder. R=golang-dev, dave CC=golang-dev https://golang.org/cl/5865051
2012-03-21html/template: fix typo and make grammar consistent in comments.David Symonds
R=golang-dev, r CC=golang-dev https://golang.org/cl/5866044
2012-03-20sort: fix computation of maxDepth to avoid infinite loopStefan Nilsson
The current computation loops indefinitely if n > 1<<30 (for 32-bit ints). R=golang-dev, gri CC=golang-dev https://golang.org/cl/5848067
2012-03-20cmd/go: use .o, not .{5,6,8}, for gccgo created object filesIan Lance Taylor
R=golang-dev, r CC=golang-dev https://golang.org/cl/5861044
2012-03-20sort: document two undocumented functionsBrad Fitzpatrick
They looked out of place in godoc. Includes documenting sort stability. Fixes #3356 R=golang-dev, gri, trolleriprofessorn CC=golang-dev https://golang.org/cl/5855044
2012-03-21runtime: remove unused goc2c.cShenghou Ma
Its functionality has been moved into cmd/dist. R=golang-dev, r, iant CC=golang-dev https://golang.org/cl/5843062
2012-03-21build: unset GOPATH before testsShenghou Ma
This is because we disallow local import for non-local packages, if GOROOT happens to be under one of GOPATH, then some tests will fail to build. Fixes #3337. R=golang-dev, r CC=golang-dev https://golang.org/cl/5852043
2012-03-20run.bat: disable test in test\bench\go1 to fix buildAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/5848066
2012-03-20html/template: add Templates and *Escape functionsRob Pike
to bring it in line with text/template's interface. Fixes #3296. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5843066
2012-03-20cmd/godoc: inform users that the playground doesn't work via local godocAndrew Gerrand
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5843065
2012-03-20build: do more during windows buildAlex Brainman
- use GO_GCFLAGS and GO_LDFLAGS if supplied - build misc\dashboard\builder and misc\goplay - run tests in test\bench\go1 - check api compatibility R=golang-dev, r, kardianos, bradfitz CC=golang-dev https://golang.org/cl/5847063
2012-03-20net: drop unnecessary type assertions and fix leak in testMikio Hara
R=golang-dev, r CC=golang-dev https://golang.org/cl/5847064
2012-03-19gc: fix struct and array comparisons for new bool rulesAnthony Martin
The two optimizations for small structs and arrays were missing the implicit cast from ideal bool. Fixes #3351. R=rsc, lvd CC=golang-dev https://golang.org/cl/5848062