[mirror] Go module mechanics libraries
Перейти к файлу
Michael Matloob 46a3137dae zip: set GIT_DIR in test when using bare repositories
If git has safe.bareRepository=explicit set, operations on bare git
repos will fail unless --git-dir or GIT_DIR is set. Set GIT_DIR in the
parts of the zip test that use bare repos to allow the tests to pass in
those circumstances.

See CL 489915 for the change setting GIT_DIR for git operations on bare
repositories in cmd/go.

Change-Id: I1f8ae9ed2b687a58d533fa605ed9ad4b5cbb8549
Reviewed-on: https://go-review.googlesource.com/c/mod/+/605937
Auto-Submit: Michael Matloob <matloob@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-16 18:30:36 +00:00
gosumcheck all: replace io/ioutil with io and os package 2023-01-23 15:43:26 +00:00
internal/lazyregexp all: add godoc links 2023-06-21 11:18:17 +00:00
modfile modfile: fix Cleanup clobbering Line reference 2024-07-25 14:26:35 +00:00
module Revert "module: add COM0 and LPT0 to badWindowsNames" 2024-06-06 18:32:53 +00:00
semver all: add godoc links 2023-06-21 11:18:17 +00:00
sumdb sumdb/tlog: set the hash of the empty tree according to RFC 6962 2024-06-26 14:12:39 +00:00
zip zip: set GIT_DIR in test when using bare repositories 2024-08-16 18:30:36 +00:00
LICENSE LICENSE: update per Google Legal 2024-07-16 16:15:54 +00:00
PATENTS x/mod: initial commit 2019-05-10 09:14:24 -04:00
README.md README: fix link to x/tools 2024-07-30 14:22:55 +00:00
codereview.cfg x/mod: initial commit 2019-05-10 09:14:24 -04:00
go.mod go.mod: set go version to 1.22.0 2024-08-15 19:21:00 +00:00
go.sum go.mod: update to go 1.18 and x/tools v0.13.0 2023-09-06 16:08:47 +00:00

README.md

mod

PkgGoDev

This repository holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.

It is NOT about supporting general development tools that need to do things like load packages in module mode. That use case, where modules are incidental rather than the focus, should remain in x/tools, specifically x/tools/go/packages.

The specific case of loading packages should still be done by invoking the go command, which remains the single point of truth for package loading algorithms.