Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ["1.23", "1.24", "1.25"]
go: ["1.24", "1.25"]
steps:
- name: setup Go
uses: actions/setup-go@v2
Expand Down
5 changes: 2 additions & 3 deletions cmd/gta/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import (
"syscall"

"github.com/digitalocean/gta"

"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)

func main() {
Expand Down Expand Up @@ -91,7 +90,7 @@ func main() {

strung := stringify(packages.AllChanges, *flagBuildableOnly)

if terminal.IsTerminal(syscall.Stdin) {
if term.IsTerminal(syscall.Stdin) {
for _, pkg := range strung {
fmt.Println(pkg)
}
Expand Down
16 changes: 7 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
module github.com/digitalocean/gta

go 1.24
go 1.24.0

require (
github.com/google/go-cmp v0.6.0
github.com/pkg/errors v0.8.0
golang.org/x/crypto v0.31.0
golang.org/x/tools v0.36.0
github.com/google/go-cmp v0.7.0
golang.org/x/term v0.38.0
golang.org/x/tools v0.40.0
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated
)

require (
golang.org/x/mod v0.27.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/mod v0.31.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/tools/go/expect v0.1.0-deprecated // indirect
)
28 changes: 12 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ=
golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=
golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q=
golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg=
golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
golang.org/x/tools/go/expect v0.1.0-deprecated h1:jY2C5HGYR5lqex3gEniOQL0r7Dq5+VGVgY1nudX5lXY=
golang.org/x/tools/go/expect v0.1.0-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM=
Expand Down
12 changes: 6 additions & 6 deletions gtaintegration/gtaintegration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package gtaintegration
import (
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"go/build"
Expand All @@ -20,7 +21,6 @@ import (
"github.com/digitalocean/gta"

"github.com/google/go-cmp/cmp"
"github.com/pkg/errors"
)

const (
Expand Down Expand Up @@ -805,31 +805,31 @@ func prepareTemp() string {
if info.IsDir() {
err := os.Mkdir(dstPath, info.Mode())
if err != nil {
return errors.Wrap(err, fmt.Sprintf("could not create directory (%s)", dstPath))
return fmt.Errorf("could not create directory (%s): %w", dstPath, err)
}
return nil
}

src, err := os.Open(path)
if err != nil {
return errors.Wrap(err, fmt.Sprintf("could not open file (%s)", path))
return fmt.Errorf("could not open file (%s): %w", path, err)
}
defer src.Close()

dst, err := os.Create(dstPath)
if err != nil {
return errors.Wrap(err, fmt.Sprintf("could not create file (%s)", dstPath))
return fmt.Errorf("could not create file (%s): %w", dstPath, err)
}
defer dst.Close()

_, err = io.Copy(dst, src)
if err != nil {
return errors.Wrap(err, fmt.Sprintf("could not copy file (%s)", path))
return fmt.Errorf("could not copy file (%s): %w", path, err)
}

err = os.Chmod(dst.Name(), info.Mode())
if err != nil {
return errors.Wrap(err, fmt.Sprintf("could not set file permission (%s)", dst.Name()))
return fmt.Errorf("could not set file permission (%s): %w", dst.Name(), err)
}
return nil
})
Expand Down
7 changes: 7 additions & 0 deletions vendor/github.com/google/go-cmp/cmp/internal/function/func.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion vendor/github.com/google/go-cmp/cmp/options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions vendor/github.com/pkg/errors/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/github.com/pkg/errors/.travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/pkg/errors/LICENSE

This file was deleted.

52 changes: 0 additions & 52 deletions vendor/github.com/pkg/errors/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions vendor/github.com/pkg/errors/appveyor.yml

This file was deleted.

Loading
Loading