Skip to content

Commit

Permalink
squashing
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed May 30, 2024
1 parent 2af8cd4 commit e0f530d
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 138 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PACKAGE ?= github.com/gptscript-ai/gptscript-credential-helpers
VERSION ?= $(shell ./hack/git-meta version)
REVISION ?= $(shell ./hack/git-meta revision)
COMMIT_DATE ?= $(shell .hack/git-meta commit-date)

GO_PKG = github.com/gptscript-ai/gptscript-credential-helpers
GO_LDFLAGS = -s -w -X ${GO_PKG}/credentials.Version=${VERSION} -X ${GO_PKG}/credentials.Revision=${REVISION} -X ${GO_PKG}/credentials.Package=${PACKAGE}
GO_LDFLAGS = -s -w -X ${GO_PKG}/credentials.Version=${VERSION} -X ${GO_PKG}/credentials.Revision=${REVISION} -X ${GO_PKG}/credentials.Package=${PACKAGE} -X main.version=${VERSION} -X main.commit=${REVISION} -X main.date=${COMMIT_DATE}

BUILDX_CMD ?= docker buildx
DESTDIR ?= ./bin/build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is a fork of https://github.com/docker/docker-credential-helpers for use wi
1 - Download the source.

```shell
$ git clone https://github.com/gptscript/gptscript-credential-helpers.git
$ git clone https://github.com/gptscript-ai/gptscript-credential-helpers.git
$ cd gptscript-credential-helpers
```

Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

// isValidCredsMessage checks if 'msg' contains invalid credentials error message.
Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion credentials/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var (
Name = ""

// Package is filled at linking time
Package = "github.com/docker/docker-credential-helpers"
Package = "github.com/gptscript-ai/gptscript-credential-helpers"

// Version holds the complete version number. Filled in at linking time.
Version = "v0.0.0+unknown"
Expand Down
37 changes: 0 additions & 37 deletions deb/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions deb/build-deb

This file was deleted.

1 change: 0 additions & 1 deletion deb/debian/compat

This file was deleted.

25 changes: 0 additions & 25 deletions deb/debian/control

This file was deleted.

1 change: 0 additions & 1 deletion deb/debian/docker-credential-pass.install

This file was deleted.

1 change: 0 additions & 1 deletion deb/debian/docker-credential-secretservice.install

This file was deleted.

18 changes: 0 additions & 18 deletions deb/debian/rules

This file was deleted.

8 changes: 1 addition & 7 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ target "binaries" {
"darwin/amd64",
"darwin/arm64",
"linux/amd64",
"linux/arm64",
"linux/arm/v7",
"linux/arm/v6",
"linux/ppc64le",
"linux/s390x",
"windows/amd64",
"windows/arm64"
"linux/arm64"
]
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/docker/docker-credential-helpers
module github.com/gptscript-ai/gptscript-credential-helpers

go 1.19

Expand Down
3 changes: 3 additions & 0 deletions hack/git-meta
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ case $1 in
"revision")
echo "$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)"
;;
"commit-date")
git show -s --format=%cI HEAD
;;
*)
echo "usage: ./hack/git-meta <version|revision>"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ find ./${DESTDIR} -type d -empty -delete
# universal binary
(
cd ${DESTDIR}
wget https://github.com/g-linville/makefat/releases/download/v0.1.0/makefat_0.1.0_linux_amd64.tar.gz
tar -xzf makefat_0.1.0_linux_amd64.tar.gz
wget https://github.com/g-linville/makefat/releases/download/v0.1.2/makefat_0.1.2_linux_amd64.tar.gz
tar -xzf makefat_0.1.2_linux_amd64.tar.gz
find . -name "gptscript-credential-osxkeychain-*" -print0 | xargs ./makefat gptscript-credential-osxkeychain
rm -f makefat* gptscript-credential-osxkeychain-*
)
Expand Down
4 changes: 2 additions & 2 deletions osxkeychain/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package main

import (
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/osxkeychain"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/osxkeychain"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions osxkeychain/osxkeychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"strconv"
"unsafe"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/registryurl"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/registryurl"
)

// errCredentialsNotFound is the specific error message returned by OS X
Expand Down
2 changes: 1 addition & 1 deletion osxkeychain/osxkeychain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"testing"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

func TestOSXKeychainHelper(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pass/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/pass"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/pass"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion pass/pass.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"strings"
"sync"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

// PASS_FOLDER contains the directory where credentials are stored
Expand Down
2 changes: 1 addition & 1 deletion pass/pass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

func TestPassHelper(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions secretservice/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package main

import (
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/secretservice"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/secretservice"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion secretservice/secretservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"errors"
"unsafe"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

// Secretservice handles secrets using Linux secret-service as a store.
Expand Down
2 changes: 1 addition & 1 deletion secretservice/secretservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

func TestSecretServiceHelper(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions wincred/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package main

import (
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/wincred"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/wincred"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions wincred/wincred.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

winc "github.com/danieljoos/wincred"
"github.com/docker/docker-credential-helpers/credentials"
"github.com/docker/docker-credential-helpers/registryurl"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/registryurl"
)

// Wincred handles secrets using the Windows credential service.
Expand Down
2 changes: 1 addition & 1 deletion wincred/wincred_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/docker/docker-credential-helpers/credentials"
"github.com/gptscript-ai/gptscript-credential-helpers/credentials"
)

func TestWinCredHelper(t *testing.T) {
Expand Down

0 comments on commit e0f530d

Please sign in to comment.