Commit Graph

8 Commits

Author SHA1 Message Date
brian m. carlson
087db1de70
Set package version to v3
Since we're about to do a v3.0.0 release, let's bump the version to v3.

Make this change automatically with the following command to avoid any
missed items:

  git grep -l github.com/git-lfs/git-lfs/v2 | \
  xargs sed -i -e 's!github.com/git-lfs/git-lfs/v2!github.com/git-lfs/git-lfs/v3!g'
2021-09-02 20:41:08 +00:00
Dennis Ameling
d7a3a090df Update formatting for Go 1.17
From the 1.17 release notes (https://golang.org/doc/go1.17#gofmt): gofmt (and go fmt) now synchronizes //go:build lines with // +build lines.

More info about this change can be found at https://golang.org/design/draft-gobuild
2021-08-17 20:24:58 +02:00
Chris Darroch
dd8e306e31 all: update go.mod module path with explicit v2
When our go.mod file was introduced in commit
114e85c2002091eb415040923d872f8e4a4bc636 in PR #3208, the module
path chosen did not include a trailing /v2 component.  However,
the Go modules specification now advises that module paths must
have a "major version suffix" which matches the release version.

We therefore add a /v2 suffix to our module path and all its
instances in import paths.

See also https://golang.org/ref/mod#major-version-suffixes for
details regarding the Go module system's major version suffix rule.
2021-08-09 23:18:38 -07:00
brian m. carlson
baa79b1684
tools: detect MINGW as Cygwin
There are several cases in which we can pass in Unix-style paths in the
Git Bash environment, which is MINGW64-based, including in file URLs. To
make such paths work, let's accept such URLs with the Unix-style paths
and then translate them to Windows-style paths automatically. Note that
passing Windows-style paths to "cygpath -W", which is what we use in
this case, works fine, so there's no regression in the Git Bash case.
2019-08-02 17:23:46 +00:00
Aleksandar Ružičić
a7241149bc
Fix tools.TranslateCygwinPath() on MSYS 2017-05-29 23:44:33 +02:00
Taylor Blau
f29d0b5764 tools: fix misnamed const 2017-02-28 13:54:01 -08:00
Taylor Blau
df847b26ba tools: cache cygwin support 2017-02-28 13:42:31 -08:00
Taylor Blau
88522b4e04 tools: wrap os.Getwd with cygwin support 2017-02-20 15:25:43 -07:00