-
Notifications
You must be signed in to change notification settings - Fork 78
Comparing changes
Open a pull request
base repository: rogpeppe/go-internal
base: v1.10.0
head repository: rogpeppe/go-internal
compare: v1.12.0
Commits on Mar 27, 2023
-
modfile: forward to x/mod (#208)
The canonical implementation of this code has now been made available inside the x/mod module, so use that. The API is almost identical, with the exception of `ParseGopkgIn` which isn't there.
Configuration menu - View commit details
-
Copy full SHA for 6e5fb8c - Browse repository at this point
Copy the full SHA 6e5fb8cView commit details -
semver: forward to x/mod/semver (#210)
This is now the canonical location of the semver package.
Configuration menu - View commit details
-
Copy full SHA for a354da8 - Browse repository at this point
Copy the full SHA a354da8View commit details -
txtar: alias types to x/tools (#209)
Although we can't quite use the x/tools/txtar implementation in its entirety (golang/go#59264 needs to be fixed first, and we implement some other functions that x/tools/txtar doesn't (yet?) have, we can at least alias its types, which makes it possible to work with other packages that use those types.
Configuration menu - View commit details
-
Copy full SHA for ca7ccbd - Browse repository at this point
Copy the full SHA ca7ccbdView commit details -
module: forward to x/mod/module (#211)
The golang.org/x/mod/module is now the canonical location of this package.
Configuration menu - View commit details
-
Copy full SHA for d4265f6 - Browse repository at this point
Copy the full SHA d4265f6View commit details -
all: deprecate wrapper packages
People should in general be using the upstream packages rather than these. Also use the upstream packages directly when possible and remove some tests that aren't testing code in this module any more.
Configuration menu - View commit details
-
Copy full SHA for 81831f2 - Browse repository at this point
Copy the full SHA 81831f2View commit details
Commits on Apr 27, 2023
-
testscript: expose (*TestScript).stdout via Stdout() (#216)
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Configuration menu - View commit details
-
Copy full SHA for 22b9127 - Browse repository at this point
Copy the full SHA 22b9127View commit details
Commits on May 5, 2023
-
testscript: use unix.CloneFile on MacOs
To fix unexpected errors of type: ``` [signal: killed] FAIL: testscripts/myecho.txt:1: unexpected command failure ``` Fixes #200
Configuration menu - View commit details
-
Copy full SHA for 44c3b86 - Browse repository at this point
Copy the full SHA 44c3b86View commit details -
testscript: suggest misspelled commands
If a command is not found, we go through the list of defined commands and check if any of them are sufficiently close to the one used. "Sufficiently close" is defined by having a Damerau-Levenshtein distance of 1, which feels like it hits the sweet spot between usefulness and ease of implementation. The negation case is still special-cased, as negation is not in the set of defined commands. Fixes #190
Configuration menu - View commit details
-
Copy full SHA for 5150104 - Browse repository at this point
Copy the full SHA 5150104View commit details
Commits on May 6, 2023
-
Now that it seems we found a fix to #200, there is no reason to stick to macos-11, which will likely be deprecated soon. Update actions/setup-go to its latest version as well. The new version uses caching by default, which we do not need. While here, tidy up the cloneFile docs a bit.
Configuration menu - View commit details
-
Copy full SHA for b93e002 - Browse repository at this point
Copy the full SHA b93e002View commit details
Commits on May 8, 2023
-
internal: remove unused packages
internal/syscall/windows/registry was never imported by any of our packages, so it seems to always have been unneeded module zip bloat. internal/textutil was used by modfile, which now simply forwards to x/mod/modfile, so the import is gone.
Configuration menu - View commit details
-
Copy full SHA for a4f6fab - Browse repository at this point
Copy the full SHA a4f6fabView commit details
Commits on May 15, 2023
-
lockedfile: update to Go tip as of March 2023
As of commit 7a21f799a5ac23d3e191a106d71af9b8f65279fd, which is crucially right before https://go.dev/cl/476917, as then internal/filelock starts using Go 1.21's errors.ErrUnsupported. We still want to support Go 1.19 and 1.20 for a while. The only change besides the import path rewriting is to drop testenv, which was only used for MustHaveExec and Command. Note that we no longer need to worry about unix build tags, as we now require Go 1.19 or later.
Configuration menu - View commit details
-
Copy full SHA for eeed7e8 - Browse repository at this point
Copy the full SHA eeed7e8View commit details -
cache: update to Go tip as of April 2023
As of commit 0fd6ae548f550bdbee4a434285ff052fb9dc7417. Besides rewriting import paths, we swapped base.Fatalf with log.Fatalf, and replaced cfg.Getenv with os.Getenv, adding a note about the difference in behavior. The old code already had this limitation. We hadn't updated this package since it was first copied in 2018, so quite a few changes have taken place. Of note, it now supports mmap; leave that out for now, to keep this commit simple and to leave adding the mmap package for another patch. A minor API change is that Trim now returns an error. While technically a breaking change, the vast majority of users will be simply calling the API without expecting a result, and that will continue to work like it did before. Checking for errors on trim is useful, which is why upstream added it. Finally, the cache now uses lockedfile, which we already copied over.
Configuration menu - View commit details
-
Copy full SHA for 5821053 - Browse repository at this point
Copy the full SHA 5821053View commit details -
Primarily testscript's code to support calling testing.MainStart; we originally needed that to implement our own deep code coverage, but thankfully `go test` does that for us automatically now.
Configuration menu - View commit details
-
Copy full SHA for bc1bde8 - Browse repository at this point
Copy the full SHA bc1bde8View commit details
Commits on May 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2d7bba0 - Browse repository at this point
Copy the full SHA 2d7bba0View commit details
Commits on May 24, 2023
-
README: add context on maintainers and a testscript overview with lin…
…ks (#225) Help give some context for people who might be evaluating using this repo and are wondering: * what is the bus factor for the repo? * who are the maintainers? * are the maintainer(s) of this repo still interested in this repo (including, are they still using it)? * are other people using testscript? * where did testscript come from? Obviously, someone can hunt around to determine many of these things on their own, but the intent is to help make that process more efficient. Updates #196.
Configuration menu - View commit details
-
Copy full SHA for ec11942 - Browse repository at this point
Copy the full SHA ec11942View commit details
Commits on Aug 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e748a67 - Browse repository at this point
Copy the full SHA e748a67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fbe0b6 - Browse repository at this point
Copy the full SHA 3fbe0b6View commit details
Commits on Sep 26, 2023
-
all: add Go 1.21, drop Go 1.19
And fix up the tests and code to adapt accordingly. While here, update the checkout action as well.
Configuration menu - View commit details
-
Copy full SHA for b6a9d8b - Browse repository at this point
Copy the full SHA b6a9d8bView commit details -
testscript: propagate GORACE like we already do with GOCOVERDIR
Do both in a loop to deduplicate code. While here, only set them if they aren't empty; this way we don't unnecessarily pollute Vars with entries such as `GOCOVERDIR=` when they don't do anything useful.
Configuration menu - View commit details
-
Copy full SHA for 32ae337 - Browse repository at this point
Copy the full SHA 32ae337View commit details
Commits on Oct 26, 2023
-
testscript,goproxytest: use filepath.WalkDir
This can easily save hundreds of stat calls per test script, particularly when testing Go tools. While here, remove a few uses of the deprecated io/ioutil in cmd, and check some missed errors in txtar-c.
Configuration menu - View commit details
-
Copy full SHA for 0bcf77f - Browse repository at this point
Copy the full SHA 0bcf77fView commit details -
testscript: add TestScript.Name
This will be useful in some cmd/cue test scripts where we want each test to create a unique remote resource that includes the current test name as a prefix, for the sake of more easily seeing which test created which resource.
Configuration menu - View commit details
-
Copy full SHA for fa6a31e - Browse repository at this point
Copy the full SHA fa6a31eView commit details
Commits on Dec 13, 2023
-
robustio: copy from cmd/go/internal/robustio (#239)
Copied from Go commit b18b05881691861c4279a50010829150f1684fa9.
Configuration menu - View commit details
-
Copy full SHA for 2c88e7f - Browse repository at this point
Copy the full SHA 2c88e7fView commit details
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.