diff --git a/.github/coverage/testcoverage-darwin.yaml b/.github/coverage/testcoverage-darwin.yaml index f5e0c64..5c9fece 100644 --- a/.github/coverage/testcoverage-darwin.yaml +++ b/.github/coverage/testcoverage-darwin.yaml @@ -15,15 +15,15 @@ local-prefix: "github.com/org/project" threshold: # (optional; default 0) # The minimum coverage that each file should have - file: 30 + file: 40 # (optional; default 0) # The minimum coverage that each package should have - package: 30 + package: 60 # (optional; default 0) # The minimum total coverage project should have - total: 30 + total: 80 # Holds regexp rules which will override thresholds for matched files or packages # using their paths. # diff --git a/.github/coverage/testcoverage-windows.yaml b/.github/coverage/testcoverage-windows.yaml index f5e0c64..5fc43cb 100644 --- a/.github/coverage/testcoverage-windows.yaml +++ b/.github/coverage/testcoverage-windows.yaml @@ -15,15 +15,15 @@ local-prefix: "github.com/org/project" threshold: # (optional; default 0) # The minimum coverage that each file should have - file: 30 + file: 40 # (optional; default 0) # The minimum coverage that each package should have - package: 30 + package: 40 # (optional; default 0) # The minimum total coverage project should have - total: 30 + total: 45 # Holds regexp rules which will override thresholds for matched files or packages # using their paths. # diff --git a/.github/linters/.golangci.yaml b/.github/linters/.golangci.yaml index 8c22489..b17e631 100644 --- a/.github/linters/.golangci.yaml +++ b/.github/linters/.golangci.yaml @@ -16,12 +16,12 @@ linters: - bidichk - bodyclose - contextcheck + - copyloopvar - durationcheck - errcheck - errchkjson - errorlint - exhaustive - - exportloopref - gocheckcompilerdirectives - gochecksumtype - gocritic diff --git a/CHANGELOG.md b/CHANGELOG.md index cb242ac..b352bbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,14 +2,19 @@ All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -[markdownlint](https://dlaa.me/markdownlint/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +The format is based on [Keep a Changelog], [markdownlint], +and this project adheres to [Semantic Versioning]. ## [Unreleased] - +## [0.2.1] - 2024-09-09 + +### Changed in 0.2.1 + +- Update dependencies + ## [0.2.0] - 2024-08-21 ### Changed in 0.2.0 @@ -100,3 +105,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed in 1.0.0 - Thing 2 + +[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/ +[markdownlint]: https://dlaa.me/markdownlint/ +[Semantic Versioning]: https://semver.org/spec/v2.0.0.html diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index a8f1a17..f6f9f91 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at . The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@senzing.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. diff --git a/Makefile b/Makefile index 12abd35..2dd1fa5 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ BUILD_VERSION := $(shell git describe --always --tags --abbrev=0 --dirty | sed DOCKER_CONTAINER_NAME := $(PROGRAM_NAME) DOCKER_IMAGE_NAME := senzing/$(PROGRAM_NAME) DOCKER_BUILD_IMAGE_NAME := $(DOCKER_IMAGE_NAME)-build +DOCKER_SUT_IMAGE_NAME := $(PROGRAM_NAME)_sut GIT_REMOTE_URL := $(shell git config --get remote.origin.url) GIT_REPOSITORY_NAME := $(shell basename `git rev-parse --show-toplevel`) GIT_VERSION := $(shell git describe --always --tags --long --dirty | sed -e 's/\-0//' -e 's/\-g.......//') @@ -69,11 +70,10 @@ hello-world: hello-world-osarch-specific # ----------------------------------------------------------------------------- .PHONY: dependencies-for-development -dependencies-for-development: +dependencies-for-development: dependencies-for-development-osarch-specific @go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest @go install github.com/vladopajic/go-test-coverage/v2@latest @go install golang.org/x/tools/cmd/godoc@latest - @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.58.1 .PHONY: dependencies diff --git a/docs/development.md b/docs/development.md index 3105c2b..2ce68c0 100644 --- a/docs/development.md +++ b/docs/development.md @@ -208,7 +208,7 @@ Example: ```console cd ${GIT_REPOSITORY_DIR} - make docker-test + make clean docker-test ``` diff --git a/go.mod b/go.mod index f357359..e3526ed 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,11 @@ module github.com/senzing-garage/validate -go 1.21 +go 1.22.0 + +toolchain go1.23.1 require ( - github.com/senzing-garage/go-cmdhelping v0.3.0 + github.com/senzing-garage/go-cmdhelping v0.3.1 github.com/senzing-garage/go-helpers v0.6.1 github.com/senzing-garage/go-logging v1.5.1 github.com/spf13/cobra v1.8.1 @@ -19,7 +21,7 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/sagikazarmark/locafero v0.6.0 // indirect @@ -31,9 +33,9 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/text v0.18.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index baf745a..39f6843 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,5 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -22,9 +21,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= -github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= +github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= @@ -35,8 +33,8 @@ github.com/sagikazarmark/locafero v0.6.0 h1:ON7AQg37yzcRPU69mt7gwhFEBwxI6P9T4Qu3 github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE1GbemJYHqdNjX0= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= -github.com/senzing-garage/go-cmdhelping v0.3.0 h1:6Yo6tYdYXrCuMwsOKdAErwPGvCi8y9PAFV2UVPOffi0= -github.com/senzing-garage/go-cmdhelping v0.3.0/go.mod h1:J6M/yRqP9ZrwuEQFyxZ9JwkvMis8lZeR4Ot4G0u5YMc= +github.com/senzing-garage/go-cmdhelping v0.3.1 h1:MCAvjx1kv3yEob1gPv4cUQ+fIrE1C/6bMBw8HbdyEqo= +github.com/senzing-garage/go-cmdhelping v0.3.1/go.mod h1:JTEcyT9VnuwqxSAolhtZEJB2IbdsFyv5KmEeoKHrUsU= github.com/senzing-garage/go-helpers v0.6.1 h1:wxQljvwix3sN7/PkWvWdBKli40lEXpEpaagCJa/336Y= github.com/senzing-garage/go-helpers v0.6.1/go.mod h1:zLNSiNeI3o0kRjfigSdT5G5GxCXvQlD3iciychF17KA= github.com/senzing-garage/go-logging v1.5.1 h1:3nqw75gN5x+6PQRop34/49+3kag1aE9dlFne7pILQAg= @@ -55,30 +53,22 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e h1:I88y4caeGeuDQxgdoFPUq097j7kNfw6uvuiNxUBfcBk= -golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= +golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 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/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main_test.go b/main_test.go index 3552761..6f9302d 100644 --- a/main_test.go +++ b/main_test.go @@ -1,5 +1,3 @@ -//go:build !windows - package main import ( diff --git a/makefiles/darwin.mk b/makefiles/darwin.mk index 9545025..1e0ac22 100644 --- a/makefiles/darwin.mk +++ b/makefiles/darwin.mk @@ -21,7 +21,7 @@ build-osarch-specific: darwin/amd64 .PHONY: clean-osarch-specific clean-osarch-specific: @docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true - @docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true + @docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true @rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true @rm -f $(MAKEFILE_DIRECTORY)/.coverage || true @rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true @@ -40,6 +40,11 @@ coverage-osarch-specific: @open file://$(MAKEFILE_DIRECTORY)/coverage.html +.PHONY: dependencies-for-development-osarch-specific +dependencies-for-development-osarch-specific: + @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest + + .PHONY: docker-build-osarch-specific docker-build-osarch-specific: @docker build \ @@ -50,6 +55,7 @@ docker-build-osarch-specific: .PHONY: documentation-osarch-specific documentation-osarch-specific: + @pkill godoc || true @godoc & @open http://localhost:6060 diff --git a/makefiles/linux.mk b/makefiles/linux.mk index 696e38c..9ac7c52 100644 --- a/makefiles/linux.mk +++ b/makefiles/linux.mk @@ -16,7 +16,7 @@ build-osarch-specific: linux/amd64 .PHONY: clean-osarch-specific clean-osarch-specific: @docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true - @docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true + @docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true @rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true @rm -f $(MAKEFILE_DIRECTORY)/.coverage || true @rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true @@ -36,6 +36,11 @@ coverage-osarch-specific: @xdg-open $(MAKEFILE_DIRECTORY)/coverage.html +.PHONY: dependencies-for-development-osarch-specific +dependencies-for-development-osarch-specific: + @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest + + .PHONY: docker-build-osarch-specific docker-build-osarch-specific: @$(DOCKER_BUILDKIT) docker build \ @@ -46,6 +51,7 @@ docker-build-osarch-specific: .PHONY: documentation-osarch-specific documentation-osarch-specific: + @pkill godoc || true @godoc & @xdg-open http://localhost:6060 diff --git a/makefiles/windows.mk b/makefiles/windows.mk index 1d1d5c5..8165fb5 100644 --- a/makefiles/windows.mk +++ b/makefiles/windows.mk @@ -43,6 +43,7 @@ docker-build-osarch-specific: .PHONY: documentation-osarch-specific documentation-osarch-specific: + @taskkill /f /t/im godoc @start /b godoc @explorer http://localhost:6060 diff --git a/package.Dockerfile b/package.Dockerfile index e1c8f17..58de98b 100755 --- a/package.Dockerfile +++ b/package.Dockerfile @@ -2,15 +2,15 @@ # Stages # ----------------------------------------------------------------------------- -ARG IMAGE_GO_BUILDER=golang:1.22.3-bullseye -ARG IMAGE_FPM_BUILDER=dockter/fpm:latest +ARG IMAGE_BUILDER=golang:1.22.3-bullseye +ARG IMAGE_FPM=dockter/fpm:latest ARG IMAGE_FINAL=alpine # ----------------------------------------------------------------------------- -# Stage: go_builder +# Stage: builder # ----------------------------------------------------------------------------- -FROM ${IMAGE_GO_BUILDER} AS go_builder +FROM ${IMAGE_BUILDER} AS builder ENV REFRESHED_AT=2024-07-01 LABEL Name="senzing/go-builder" \ Maintainer="support@senzing.com" \ @@ -39,12 +39,12 @@ RUN mkdir -p /output \ && cp -R ${GOPATH}/src/${GO_PACKAGE_NAME}/target/* /output/ # ----------------------------------------------------------------------------- -# Stage: fpm_builder +# Stage: fpm # - Reference: https://github.com/jordansissel/fpm/blob/master/Dockerfile # - FPM: https://fpm.readthedocs.io/en/latest/cli-reference.html # ----------------------------------------------------------------------------- -FROM ${IMAGE_FPM_BUILDER} AS fpm_builder +FROM ${IMAGE_FPM} AS fpm ENV REFRESHED_AT=2024-07-01 LABEL Name="senzing/fpm-builder" \ Maintainer="support@senzing.com" \ @@ -59,7 +59,7 @@ ARG GO_PACKAGE_NAME # Copy files from prior stage. -COPY --from=go_builder "/output/linux-amd64/*" "/output/linux-amd64/" +COPY --from=builder "/output/linux-amd64/*" "/output/linux-amd64/" # Create Linux RPM package. @@ -105,8 +105,8 @@ ARG PROGRAM_NAME # Copy files from prior step. -COPY --from=fpm_builder "/output/*" "/output/" -COPY --from=fpm_builder "/output/linux-amd64/${PROGRAM_NAME}" "/output/linux-amd64/${PROGRAM_NAME}" +COPY --from=fpm "/output/*" "/output/" +COPY --from=fpm "/output/linux-amd64/${PROGRAM_NAME}" "/output/linux-amd64/${PROGRAM_NAME}" USER 1001 CMD ["/bin/bash"]