Skip to content

Commit

Permalink
Migrate to Go modules
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Jan 21, 2021
1 parent 2e2250a commit 7ce266a
Show file tree
Hide file tree
Showing 667 changed files with 211,778 additions and 17,543 deletions.
8 changes: 6 additions & 2 deletions gateway/Dockerfile
@@ -1,8 +1,8 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} teamserverless/license-check:0.3.9 as license-check

FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.13 as build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.15 as build

ENV GO111MODULE=off
ENV GO111MODULE=on
ENV CGO_ENABLED=0

ARG TARGETPLATFORM
Expand All @@ -19,6 +19,8 @@ COPY --from=license-check /license-check /usr/bin/
WORKDIR /go/src/github.com/openfaas/faas/gateway

COPY vendor vendor
COPY go.mod go.mod
COPY go.sum go.sum

COPY handlers handlers
COPY metrics metrics
Expand All @@ -32,6 +34,8 @@ COPY version version
COPY scaling scaling
COPY pkg pkg
COPY main.go .


RUN license-check -path ./ --verbose=false "Alex Ellis" "OpenFaaS Authors" "OpenFaaS Author(s)"


Expand Down
222 changes: 0 additions & 222 deletions gateway/Gopkg.lock

This file was deleted.

31 changes: 0 additions & 31 deletions gateway/Gopkg.toml

This file was deleted.

18 changes: 18 additions & 0 deletions gateway/go.mod
@@ -0,0 +1,18 @@
module github.com/openfaas/faas/gateway

go 1.15

require (
github.com/docker/distribution v2.7.1+incompatible
github.com/gorilla/mux v1.8.0
github.com/nats-io/jwt v1.2.2 // indirect
github.com/nats-io/nats-streaming-server v0.20.0 // indirect
github.com/nats-io/stan.go v0.8.2 // indirect
github.com/openfaas/faas-provider v0.16.2
github.com/openfaas/nats-queue-worker v0.0.0-20200512211843-8e9eefd5a320
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/procfs v0.3.0 // indirect
go.uber.org/goleak v1.1.10
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect
)

0 comments on commit 7ce266a

Please sign in to comment.