Initial commit

This commit is contained in:
2025-01-16 23:54:40 +01:00
committed by demus
commit 1adb99b300
5 changed files with 166 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
# ---> VisualStudioCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
+15
View File
@@ -0,0 +1,15 @@
Index: pkg/v1/google/auth_test.go
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/pkg/v1/google/auth_test.go b/pkg/v1/google/auth_test.go
--- a/pkg/v1/google/auth_test.go
+++ b/pkg/v1/google/auth_test.go (date 1722961118000)
@@ -1,4 +1,4 @@
-//go:build !arm64
-// +build !arm64
+//go:build ignore
+// +build ignore
// Copyright 2018 Google LLC All Rights Reserved.
+9
View File
@@ -0,0 +1,9 @@
MIT License
Copyright (c) 2025 demus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+3
View File
@@ -0,0 +1,3 @@
# golang-rpm
Template repo for golang fedora packaging
+102
View File
@@ -0,0 +1,102 @@
# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%if %{with bootstrap}
%global debug_package %{nil}
%endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/google/go-containerregistry
%global goipath github.com/google/go-containerregistry
Version: 0.20.2
%global tag v0.20.2
%gometa -f
%global common_description %{expand:
Go library and CLIs for working with container registries.}
%global golicenses LICENSE
%global godocs CONTRIBUTING.md README.md SECURITY.md doc\\\
cmd/crane/README.md cmd/crane/rebase.md\\\
cmd/crane/recipes.md cmd/crane/help/README.md\\\
cmd/gcrane/README.md cmd/ko/README.md\\\
cmd/krane/README.md\\\
hack/boilerplate/boilerplate.go.txt\\\
pkg/authn/README.md pkg/authn/k8schain/README.md\\\
pkg/legacy/tarball/README.md pkg/name/README.md\\\
pkg/registry/README.md pkg/v1/daemon/README.md\\\
pkg/v1/empty/README.md pkg/v1/google/README.md\\\
pkg/v1/layout/README.md pkg/v1/mutate/README.md\\\
pkg/v1/partial/README.md pkg/v1/remote/README.md\\\
pkg/v1/remote/transport/README.md\\\
pkg/v1/stream/README.md pkg/v1/tarball/README.md
Name: golang-github-google-containerregistry
Release: %autorelease
Summary: Go library and CLIs for working with container registries
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
Patch: 0001-Disable-tests-using-network.patch
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in cmd/* ; do
if [[ "$cmd" == "cmd/ko" ]]; then continue; fi
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc CONTRIBUTING.md README.md SECURITY.md cmd/crane/README.md
%doc cmd/crane/rebase.md cmd/crane/recipes.md cmd/crane/help/README.md
%doc cmd/gcrane/README.md cmd/ko/README.md cmd/krane/README.md
%doc hack/boilerplate/boilerplate.go.txt pkg/authn/README.md
%doc pkg/authn/k8schain/README.md pkg/legacy/tarball/README.md
%doc pkg/name/README.md pkg/registry/README.md pkg/v1/daemon/README.md
%doc pkg/v1/empty/README.md pkg/v1/google/README.md pkg/v1/layout/README.md
%doc pkg/v1/mutate/README.md pkg/v1/partial/README.md pkg/v1/remote/README.md
%doc pkg/v1/remote/transport/README.md pkg/v1/stream/README.md
%doc pkg/v1/tarball/README.md
%{_bindir}/*
%endif
%gopkgfiles
%changelog
%autochangelog