Skip to content

Commit

Permalink
Merge pull request #82 from cloudfoundry-community/mod
Browse files Browse the repository at this point in the history
switch to Go modules
  • Loading branch information
vito authored Feb 18, 2021
2 parents b99970a + c8e104a commit d6249fc
Show file tree
Hide file tree
Showing 109 changed files with 29 additions and 18,003 deletions.
125 changes: 0 additions & 125 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

6 changes: 3 additions & 3 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ RUN apt-get update && apt-get -y install curl
RUN mkdir -p /assets
WORKDIR /assets
RUN curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&source=github" | tar -xzf -
COPY . /go/src/github.com/concourse/cf-resource
ENV CGO_ENABLED 0
WORKDIR /src
COPY . .
RUN go mod download
RUN go build -o /assets/in github.com/concourse/cf-resource/in/cmd/in
RUN go build -o /assets/out github.com/concourse/cf-resource/out/cmd/out
RUN go build -o /assets/check github.com/concourse/cf-resource/check/cmd/check
WORKDIR /go/src/github.com/concourse/cf-resource
RUN set -e; for pkg in $(go list ./... | grep -v "acceptance"); do \
go test -o "/tests/$(basename $pkg).test" -c $pkg; \
done
Expand Down
9 changes: 3 additions & 6 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN mkdir -p /assets
WORKDIR /assets
RUN curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&source=github" | tar -xzf -
RUN curl -L "https://github.com/contraband/autopilot/releases/download/0.0.8/autopilot-linux" -o /assets/autopilot
COPY . /go/src/github.com/concourse/cf-resource
ENV CGO_ENABLED 0
WORKDIR /src
COPY . .
RUN go mod download
RUN go build -o /assets/in github.com/concourse/cf-resource/in/cmd/in
RUN go build -o /assets/out github.com/concourse/cf-resource/out/cmd/out
RUN go build -o /assets/check github.com/concourse/cf-resource/check/cmd/check
WORKDIR /go/src/github.com/concourse/cf-resource
RUN set -e; for pkg in $(go list ./... | grep -v "acceptance"); do \
go test -o "/tests/$(basename $pkg).test" -c $pkg; \
done
Expand All @@ -28,8 +27,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*
RUN mv /opt/resource/cf /usr/bin/cf
RUN mv /opt/resource/autopilot /usr/bin/autopilot
RUN /usr/bin/cf install-plugin -f /usr/bin/autopilot

FROM resource AS tests
COPY --from=builder /tests /go-tests
Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/concourse/cf-resource

go 1.16

require (
github.com/onsi/ginkgo v1.2.0-beta
github.com/onsi/gomega v0.0.0-20140708193218-efd113280743
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.0.0-20150224225758-49c95bdc2184
)
13 changes: 13 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/onsi/ginkgo v1.2.0-beta h1:3Teuu5bbLA4FDE2CLKvLXUlj+jrdNydde2AvoY4ssys=
github.com/onsi/ginkgo v1.2.0-beta/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v0.0.0-20140708193218-efd113280743 h1:rr+EiVbbXTCNtsybAJyiQalqbMLRB3jmYJIGaCQS+eY=
github.com/onsi/gomega v0.0.0-20140708193218-efd113280743/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/yaml.v2 v2.0.0-20150224225758-49c95bdc2184 h1:KB2Ivedb+azEd6clzE91FFyZ1ifGv+UKRUt71KmvREw=
gopkg.in/yaml.v2 v2.0.0-20150224225758-49c95bdc2184/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
4 changes: 0 additions & 4 deletions vendor/github.com/onsi/ginkgo/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions vendor/github.com/onsi/ginkgo/.travis.yml

This file was deleted.

117 changes: 0 additions & 117 deletions vendor/github.com/onsi/ginkgo/CHANGELOG.md

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/github.com/onsi/ginkgo/LICENSE

This file was deleted.

Loading

0 comments on commit d6249fc

Please sign in to comment.