Commit 999f36f1 authored by Thor Bjorgvinsson's avatar Thor Bjorgvinsson Committed by Ivan Aguilar
Browse files

Updating spec file for gomod

parent 2959da82
......@@ -13,7 +13,7 @@ Source0 :{name}-%{version}.tar.gz
Packager :, Inc. <>
Vendor :
BuildRequires: golang >= 1.13.14
BuildRequires: golang >= 1.15.12
%if 0%{?amzn} >= 2
BuildRequires: systemd-devel
......@@ -32,9 +32,6 @@ sed -i -e 's#const[ \s]*Version.*#const Version = "%{version}"#g' agent/version/
export GOPATH=`pwd`/vendor:`pwd`
ln -s `pwd` vendor/src/
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro,-z,defs" -buildmode=pie -o bin/amazon-ssm-agent -v core/agent.go core/agent_unix.go core/agent_parser.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro,-z,defs" -buildmode=pie -o bin/ssm-agent-worker -v agent/agent.go agent/agent_unix.go agent/agent_parser.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro,-z,defs" -buildmode=pie -o bin/ssm-document-worker -v agent/framework/processor/executer/outofproc/worker/main.go
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment