Closed chienhanlin closed 2 years ago
This PR updates packaging/amazon-linux-ami/ecs-init.spec and scripts/gobuild.sh for packing ecs-init rpm for Amazon Linux 2022 (AL220) OS.
packaging/amazon-linux-ami/ecs-init.spec
scripts/gobuild.sh
%global debug_package %{nil}
RPM build errors: Empty %files file...
ecs
in amazon-linux-ami/ecs-init.spec to fix
GO111MODULE="auto"
New tests cover the changes: no
Support building ecs-init rpm on AL2022 OS.
This contribution is under the terms of the Apache 2.0 License: yes
Summary
This PR updates
packaging/amazon-linux-ami/ecs-init.spec
andscripts/gobuild.sh
for packing ecs-init rpm for Amazon Linux 2022 (AL220) OS.Implementation details
%global debug_package %{nil}
in amazon-linux-ami/ecs-init.spec to fixRPM build errors: Empty %files file...
.ecs
after %systemd_postunin amazon-linux-ami/ecs-init.spec to fix
error: The %systemd_postun macro requires some arguments`.GO111MODULE="auto"
in gobuild.sh to only use go modules if modules exist.Testing
New tests cover the changes: no
Description for the changelog
Support building ecs-init rpm on AL2022 OS.
Licensing
This contribution is under the terms of the Apache 2.0 License: yes