Skip to content

Commit

Permalink
Merge pull request nephio-project#107 from nokia/single-module
Browse files Browse the repository at this point in the history
Merge all of porch's go modules into a single go module
  • Loading branch information
nephio-prow[bot] committed Sep 6, 2024
2 parents 8a1c5fd + 18ab2a0 commit 9eca408
Show file tree
Hide file tree
Showing 31 changed files with 2,177 additions and 847 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ GO_MODULES = \

.PHONY: tidy
tidy:
@for f in $(GO_MODULES); do (cd $$f; echo "Tidying $$f"; go mod tidy) || exit 1; done
go mod tidy

.PHONY: configure-git
configure-git:
Expand Down
52 changes: 0 additions & 52 deletions api/go.mod

This file was deleted.

145 changes: 0 additions & 145 deletions api/go.sum

This file was deleted.

3 changes: 0 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ WORKDIR /go/src
# and so that source changes don't invalidate our downloaded layer

COPY go.mod go.sum ./
COPY api/go.mod api/go.sum ./api/

RUN echo "Downloading porch modules ..." \
&& go mod download
RUN echo "Downloading api modules ..." \
&& cd api && go mod download

ENV CGO_ENABLED=0
# Prebuild some library dependencies to warm the cache
Expand Down
3 changes: 0 additions & 3 deletions controllers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ WORKDIR /go/src
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
COPY go.mod go.sum ./
COPY api/go.mod api/go.sum ./api/

RUN echo "Downloading porch modules ..." \
&& go mod download
RUN echo "Downloading api modules ..." \
&& cd api && go mod download

ENV CGO_ENABLED=0
# Prebuild some library dependencies to warm the cache
Expand Down
9 changes: 0 additions & 9 deletions controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ IMAGE_TAG ?= latest
IMAGE_REPO ?= docker.io/nephio
IMAGE_NAME ?= porch-controllers

# This includes the following targets:
# test, unit, unit-clean,
# gosec, lint,
# fmt, vet
include ../default-go.mk

# This includes the 'help' target that prints out all targets with their descriptions organized by categories
include ../default-help.mk

.PHONY: build-image docker-build
build-image docker-build:
docker buildx build --load --tag $(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) -f Dockerfile ..
Expand Down
Loading

0 comments on commit 9eca408

Please sign in to comment.