SHA256
1
0
forked from pool/terragrunt

Accepting request 1185149 from home:ojkastl_buildservice:Branch_terraform

update to 0.59.6

OBS-URL: https://build.opensuse.org/request/show/1185149
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:terraform/terragrunt?expand=0&rev=286
This commit is contained in:
Johannes Kastl 2024-07-03 15:29:54 +00:00 committed by Git OBS Bridge
commit dbb6163f9c
11 changed files with 1696 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

36
Makefile Normal file
View File

@ -0,0 +1,36 @@
NAME = terragrunt
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
export GOPATH := $(mkfile_dir)/tmpdir/
# make sure ./ is in the path,
# otherwise mockery is not found...
export PATH := :$(mkfile_dir)/tmpdir/bin:$(PATH)
default: clean tar
clean:
rm -rf $(NAME) $(NAME)-*.obscpio vendor.tar.gz ./tmpdir
tar:
osc service manualrun
mkdir -p ./tmpdir/src/ && \
rm -rf ./tmpdir/src/ && \
echo "Copy files to ./tmpdir/src/" && \
cp -r ./terragrunt/ ./tmpdir/src && \
cd ./tmpdir/src/ && \
echo "Installing mockery" && \
go install github.com/vektra/mockery/v2@v2.43.0 && \
echo "Starting go generate" && \
go generate ./... && \
go mod download && \
go mod vendor && \
echo "Creating tarball vendor.tar.gz" && \
tar czf ../../vendor.tar.gz ./vendor && \
ls -lh ../../vendor.tar.gz && \
echo "Cleaning up" && \
go clean -modcache && \
cd ../../ && \
rm -rf ./tmpdir && \
echo "Finished"

14
PACKAGING_README.md Normal file
View File

@ -0,0 +1,14 @@
# Packaging terragrunt
terragrunt 0.58.4 changed the Makefile. Since then, the `mocks` need to be
prepared during build.
This also means, that vendoring fails without first creating the mocks...
1. Change the version in the `_service` file
3. Run `make`
4. Check the autogenerated changelog entry
5. Commit the changes as usual
For the OBS workflow you need `obs-service-tar_scm`.
For the `make` part you need `make` and a recent go installation.

19
_service Normal file
View File

@ -0,0 +1,19 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/gruntwork-io/terragrunt</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.59.6</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
<param name="basename">terragrunt</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/gruntwork-io/terragrunt</param>
<param name="changesrevision">6dd7aae4079762eb60b0630f68e6e2c95717aaca</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e70ee4b8c6246e967ffdc35c57c14a785f4f564d0cff46c539b1dc06a85c35c9
size 7640077

1535
terragrunt.changes Normal file

File diff suppressed because it is too large Load Diff

4
terragrunt.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: terragrunt
version: 0.59.6
mtime: 1719492067
commit: 6dd7aae4079762eb60b0630f68e6e2c95717aaca

54
terragrunt.spec Normal file
View File

@ -0,0 +1,54 @@
#
# spec file for package terragrunt
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: terragrunt
Version: 0.59.6
Release: 0
Summary: Thin wrapper for Terraform for working with multiple Terraform modules
License: MIT
URL: https://github.com/gruntwork-io/terragrunt
Source: terragrunt-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: Makefile
Source3: PACKAGING_README.md
BuildRequires: go1.21 >= 1.21.7
%description
Terragrunt is a thin wrapper for Terraform that provides extra tools for keeping your Terraform configurations DRY, working with multiple Terraform modules, and managing remote state.
%prep
%autosetup -p1 -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X github.com/gruntwork-io/go-commons/version.Version=v%{version}"
%install
# Install the binary.
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
%files
%doc README.md
%license LICENSE.txt
%{_bindir}/%{name}
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12fa03b5484ec5794caddf62e91b82e8dc8963417db5533ef9fee0326906b7c3
size 16099759