Skip to content

Commit

Permalink
chore: rename go mod since upstream is almost dead
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys3 committed Nov 17, 2023
1 parent d8ecf17 commit 6a0a8f7
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apk add --no-cache \
bash \
ca-certificates

COPY . /go/src/github.com/genuinetools/reg
COPY . /go/src/github.com/ttys3/reg

RUN set -x \
&& apk add --no-cache --virtual .build-deps \
Expand All @@ -17,7 +17,7 @@ RUN set -x \
libc-dev \
libgcc \
make \
&& cd /go/src/github.com/genuinetools/reg \
&& cd /go/src/github.com/ttys3/reg \
&& make static \
&& mv reg /usr/bin/reg \
&& apk del .build-deps \
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dind: stop-dind ## Starts a docker-in-docker container for running the tests wit
--name $(NAME)-dind \
--privileged \
-v $(CURDIR)/.certs:/etc/docker/ssl \
-v $(CURDIR):/go/src/github.com/genuinetools/reg \
-v $(CURDIR):/go/src/github.com/ttys3/reg \
-v /tmp:/tmp \
$(REGISTRY)/docker:userns \
dockerd -D --storage-driver $(DOCKER_GRAPHDRIVER) \
Expand All @@ -38,8 +38,8 @@ stop-dind: ## Stops the docker-in-docker container.
.PHONY: dtest
dtest: image-dev ## Run the tests in a docker container.
docker run --rm -i $(DOCKER_FLAGS) \
-v $(CURDIR):/go/src/github.com/genuinetools/reg \
--workdir /go/src/github.com/genuinetools/reg \
-v $(CURDIR):/go/src/github.com/ttys3/reg \
--workdir /go/src/github.com/ttys3/reg \
-v $(CURDIR)/.certs:/etc/docker/ssl:ro \
-v /tmp:/tmp \
--disable-content-trust=true \
Expand Down
2 changes: 1 addition & 1 deletion clair/layerutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clair
import (
"context"
"fmt"
"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
"strings"

"github.com/distribution/distribution/v3"
Expand Down
2 changes: 1 addition & 1 deletion clair/vulns.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"time"

"github.com/genuinetools/reg/registry"
"github.com/quay/clair/v3/api/v3/clairpb"
"github.com/ttys3/reg/registry"
)

// Vulnerabilities scans the given repo and tag.
Expand Down
2 changes: 1 addition & 1 deletion digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"fmt"

"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
)

const digestHelp = `Get the digest for a repository.`
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/genuinetools/reg
module github.com/ttys3/reg

go 1.21

Expand Down
4 changes: 2 additions & 2 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"sync"
"time"

"github.com/genuinetools/reg/clair"
"github.com/genuinetools/reg/registry"
"github.com/sirupsen/logrus"
"github.com/ttys3/reg/clair"
"github.com/ttys3/reg/registry"
)

type registryController struct {
Expand Down
2 changes: 1 addition & 1 deletion layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io/ioutil"
"os"

"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
)

const layerHelp = `Download a layer for a repository.`
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"time"

"github.com/genuinetools/pkg/cli"
"github.com/genuinetools/reg/registry"
"github.com/genuinetools/reg/repoutils"
"github.com/genuinetools/reg/version"
"github.com/sirupsen/logrus"
"github.com/ttys3/reg/registry"
"github.com/ttys3/reg/repoutils"
"github.com/ttys3/reg/version"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/docker/docker/client"
"github.com/genuinetools/reg/testutils"
"github.com/ttys3/reg/testutils"
)

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

"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
)

const manifestHelp = `Get the json manifest for a repository.`
Expand Down
2 changes: 1 addition & 1 deletion manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestManifestV1(t *testing.T) {
}

func TestManifestWithHubDomain(t *testing.T) {
// Regression test for https://github.com/genuinetools/reg/issues/164
// Regression test for https://github.com/ttys3/reg/issues/164
out, err := run("manifest", "busybox")
if err != nil {
t.Fatalf("output: %s, error: %v", out, err)
Expand Down
2 changes: 1 addition & 1 deletion registry/digest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/genuinetools/reg/repoutils"
"github.com/ttys3/reg/repoutils"
)

func TestDigestFromDockerHub(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion registry/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package registry
import (
"context"
"github.com/distribution/distribution/v3/manifest/ocischema"
"github.com/genuinetools/reg/repoutils"
ociv1 "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/ttys3/reg/repoutils"
"testing"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"fmt"

"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
)

const removeHelp = `Delete a specific reference of a repository.`
Expand Down
2 changes: 1 addition & 1 deletion repoutils/repoutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func GetAuthConfig(username, password, registry string) (types.AuthConfig, error
}

// add https:// to user input and try again
// see https://github.com/genuinetools/reg/issues/32
// see https://github.com/ttys3/reg/issues/32
if !strings.HasPrefix(registry, "https://") && !strings.HasPrefix(registry, "http://") {
registryCleaned := "https://" + registry
if creds, ok := authConfigs[registryCleaned]; ok {
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"time"

"github.com/dustin/go-humanize"
"github.com/genuinetools/reg/clair"
"github.com/labstack/echo/v4"
wordwrap "github.com/mitchellh/go-wordwrap"
"github.com/sirupsen/logrus"
"github.com/ttys3/reg/clair"
)

const serverHelp = `Run a static UI server for a registry.`
Expand Down
2 changes: 1 addition & 1 deletion server/templates/layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>Command</h2>

<div class="footer">
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
<p>Checkout the source code at: <a href="https://github.com/ttys3/reg">github.com/ttys3/reg</a></p>
</div><!--/.footer-->
<script src="/static/js/lib/clipboard.min.js"></script>
<script src="/static/js/lib/notification.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion server/templates/repositories.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>{{ .RegistryDomain }}</h1>

<div class="footer">
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
<p>Checkout the source code at: <a href="https://github.com/ttys3/reg">github.com/ttys3/reg</a></p>
<p>Last Updated: {{ .LastUpdated }}</p>
<p>Update Interval: {{ .UpdateInterval }}</p>
</div><!--/.footer-->
Expand Down
2 changes: 1 addition & 1 deletion server/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h1><a href="/">🏠</a> {{ .RegistryDomain }}/{{ .Name }}</h1>

<div class="footer">
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
<p>Checkout the source code at: <a href="https://github.com/ttys3/reg">github.com/ttys3/reg</a></p>
<p>Last Updated: {{ .LastUpdated }}</p>
</div><!--/.footer-->
<script src="/static/js/lib/clipboard.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion server/templates/vulns.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3 class="panel-title">{{$value.Name}}

<footer class="text-center">
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
<p>Checkout the source code at: <a href="https://github.com/ttys3/reg">github.com/ttys3/reg</a></p>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sort"
"strings"

"github.com/genuinetools/reg/registry"
"github.com/ttys3/reg/registry"
)

const tagsHelp = `Get the tags for a repository.`
Expand Down
4 changes: 2 additions & 2 deletions vulns.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"fmt"
"os"

"github.com/genuinetools/reg/clair"
"github.com/genuinetools/reg/registry"
"github.com/sirupsen/logrus"
"github.com/ttys3/reg/clair"
"github.com/ttys3/reg/registry"
)

const vulnsHelp = `Get a vulnerability report for a repository from a CoreOS Clair server.`
Expand Down

0 comments on commit 6a0a8f7

Please sign in to comment.