tfautomv/tfautomv.spec
Your Name 0fefb358d9
All checks were successful
Run CI/CD... / main (push) Successful in 6m53s
0.6.2
2025-02-17 15:27:20 +00:00

43 lines
1 KiB
RPMSpec

%define debug %nil
%define debug_package %nil
Name: tfautomv
Version: 0.6.2
Release: 1
Summary: Generate Terraform moved blocks automatically for painless refactoring
URL: https://github.com/padok-team/tfautomv
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: ASL 2.0
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
When you move a resource in your code, Terraform loses
track of the resource's state. The next time you run
Terraform, it will plan to delete the resource it has
memory of and create the "new" resource it found in your
refactored code.
tfautomv inspects the output of terraform plan, detects
such creation/deletion pairs and writes a moved block so
that Terraform now knows no deletion or creation is required.
%prep
%setup -q
%build
export GOPROXY=https://proxy.golang.org,direct
%make build
upx bin/%{name}
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}