Skip to content

Commit 86b0d21

Browse files
authored
Merge pull request #2 from wtam2018/rename-package-name
rename package name to new org name
2 parents 1aef123 + 3cf1316 commit 86b0d21

File tree

18 files changed

+30
-27
lines changed

18 files changed

+30
-27
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /go/src
33
COPY . /go/src
44
RUN GIT_COMMIT=$(git rev-parse HEAD) && \
55
CGO_ENABLED=0 GOOS=linux go build -a \
6-
-ldflags "-X github.com/rhd-gitops-example/gitops-backend/pkg/health.GitRevision=${GIT_COMMIT}" ./cmd/backend-http
6+
-ldflags "-X github.com/redhat-developer/gitops-backend/pkg/health.GitRevision=${GIT_COMMIT}" ./cmd/backend-http
77

88
FROM registry.access.redhat.com/ubi8/ubi-minimal
99
WORKDIR /root/

cmd/backend-http/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/rhd-gitops-example/gitops-backend/pkg/cmd"
4+
"github.com/redhat-developer/gitops-backend/pkg/cmd"
55
)
66

77
func main() {

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/rhd-gitops-example/gitops-backend
1+
module github.com/redhat-developer/gitops-backend
22

33
go 1.14
44

@@ -28,6 +28,7 @@ require (
2828
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 // indirect
2929
github.com/prometheus/common v0.7.0 // indirect
3030
github.com/prometheus/procfs v0.0.5 // indirect
31+
github.com/rhd-gitops-example/gitops-backend v0.0.0-20200922164111-e3fd3401e6cd
3132
github.com/shurcooL/githubv4 v0.0.0-20191102174205-af46314aec7b // indirect
3233
github.com/spf13/cast v1.3.1 // indirect
3334
github.com/spf13/cobra v1.0.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDa
319319
github.com/prometheus/procfs v0.0.5 h1:3+auTFlqw+ZaQYJARz6ArODtkaIwtvBTx3N2NehQlL8=
320320
github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
321321
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
322+
github.com/rhd-gitops-example/gitops-backend v0.0.0-20200922164111-e3fd3401e6cd h1:5zjKaYoTfzqls/2CydXM8ls7ggGBu188x9Wcvj00vto=
323+
github.com/rhd-gitops-example/gitops-backend v0.0.0-20200922164111-e3fd3401e6cd/go.mod h1:ENI/IrBm31kY23IiYK/Q1aC6CK5lgkm4NGoXOY+JQj4=
322324
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
323325
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
324326
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=

pkg/cmd/root.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"k8s.io/client-go/rest"
1111

1212
"github.com/prometheus/client_golang/prometheus/promhttp"
13-
"github.com/rhd-gitops-example/gitops-backend/pkg/git"
14-
"github.com/rhd-gitops-example/gitops-backend/pkg/health"
15-
"github.com/rhd-gitops-example/gitops-backend/pkg/httpapi"
16-
"github.com/rhd-gitops-example/gitops-backend/pkg/httpapi/secrets"
17-
"github.com/rhd-gitops-example/gitops-backend/pkg/metrics"
13+
"github.com/redhat-developer/gitops-backend/pkg/git"
14+
"github.com/redhat-developer/gitops-backend/pkg/health"
15+
"github.com/redhat-developer/gitops-backend/pkg/httpapi"
16+
"github.com/redhat-developer/gitops-backend/pkg/httpapi/secrets"
17+
"github.com/redhat-developer/gitops-backend/pkg/metrics"
1818
)
1919

2020
const (

pkg/git/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/jenkins-x/go-scm/scm"
8-
"github.com/rhd-gitops-example/gitops-backend/pkg/metrics"
8+
"github.com/redhat-developer/gitops-backend/pkg/metrics"
99
)
1010

1111
// New creates and returns a new SCMClient.

pkg/git/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/google/go-cmp/cmp"
1111
"github.com/jenkins-x/go-scm/scm/factory"
1212

13-
"github.com/rhd-gitops-example/gitops-backend/pkg/metrics"
14-
"github.com/rhd-gitops-example/gitops-backend/test"
13+
"github.com/redhat-developer/gitops-backend/pkg/metrics"
14+
"github.com/redhat-developer/gitops-backend/test"
1515
)
1616

1717
func TestFileContents(t *testing.T) {

pkg/git/scm_factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/url"
66

77
scmfactory "github.com/jenkins-x/go-scm/scm/factory"
8-
"github.com/rhd-gitops-example/gitops-backend/pkg/metrics"
8+
"github.com/redhat-developer/gitops-backend/pkg/metrics"
99
)
1010

1111
// SCMClientFactory is an implementation of the GitClientFactory interface that can

pkg/git/scm_factory_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"testing"
55

66
"github.com/jenkins-x/go-scm/scm"
7-
"github.com/rhd-gitops-example/gitops-backend/pkg/metrics"
8-
"github.com/rhd-gitops-example/gitops-backend/test"
7+
"github.com/redhat-developer/gitops-backend/pkg/metrics"
8+
"github.com/redhat-developer/gitops-backend/test"
99
)
1010

1111
var _ ClientFactory = (*SCMClientFactory)(nil)

pkg/gitfs/gitfs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/google/go-cmp/cmp"
88
"sigs.k8s.io/kustomize/pkg/fs"
99

10-
"github.com/rhd-gitops-example/gitops-backend/test"
10+
"github.com/redhat-developer/gitops-backend/test"
1111
)
1212

1313
var _ fs.FileSystem = gitFS{}

0 commit comments

Comments
 (0)