From 8b2d7ff515a391aaa043dc89ebed2685f6728b675639a2784822d154d422471b Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Wed, 12 Feb 2025 05:59:33 +0000 Subject: [PATCH] update to 0.8.1 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/regclient?expand=0&rev=7 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 23 +++++++ _servicedata | 4 ++ regclient-0.7.1.obscpio | 3 + regclient-0.7.2.obscpio | 3 + regclient-0.8.0.obscpio | 3 + regclient-0.8.1.obscpio | 3 + regclient.changes | 133 ++++++++++++++++++++++++++++++++++++++ regclient.obsinfo | 4 ++ regclient.spec | 137 ++++++++++++++++++++++++++++++++++++++++ vendor.tar.gz | 3 + 12 files changed, 340 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 regclient-0.7.1.obscpio create mode 100644 regclient-0.7.2.obscpio create mode 100644 regclient-0.8.0.obscpio create mode 100644 regclient-0.8.1.obscpio create mode 100644 regclient.changes create mode 100644 regclient.obsinfo create mode 100644 regclient.spec create mode 100644 vendor.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..0b1e032 --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/regclient/regclient + git + yes + v0.8.1 + @PARENT_TAG@ + v(.*) + enable + + + + + + + + yes + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..68ceff0 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/regclient/regclient + 80af8a3ace6d8fb26bc1fa8e4c4a7ca3a9e877f2 \ No newline at end of file diff --git a/regclient-0.7.1.obscpio b/regclient-0.7.1.obscpio new file mode 100644 index 0000000..7b4eb67 --- /dev/null +++ b/regclient-0.7.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a4c5ff116e727913ce3e1e066b8665b278120939aa281b76e2bba627e875a38 +size 4701196 diff --git a/regclient-0.7.2.obscpio b/regclient-0.7.2.obscpio new file mode 100644 index 0000000..452b0e4 --- /dev/null +++ b/regclient-0.7.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1302dd4b5e79192f1db4fbe48ef48630e0ccf92bbb3e68dfba8155929e510e9 +size 4796428 diff --git a/regclient-0.8.0.obscpio b/regclient-0.8.0.obscpio new file mode 100644 index 0000000..3807493 --- /dev/null +++ b/regclient-0.8.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b812f6466a2238aec67e7edd78b6e56744f2e46115bee4f80d31ac0497b3f34c +size 4891148 diff --git a/regclient-0.8.1.obscpio b/regclient-0.8.1.obscpio new file mode 100644 index 0000000..529413d --- /dev/null +++ b/regclient-0.8.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e1b342b68f9231bb71759a2b06db0587846a5f93c52c2f652d89e65a1a9d363 +size 4948492 diff --git a/regclient.changes b/regclient.changes new file mode 100644 index 0000000..2dbd0e5 --- /dev/null +++ b/regclient.changes @@ -0,0 +1,133 @@ +------------------------------------------------------------------- +Wed Feb 12 05:53:54 UTC 2025 - opensuse_buildservice@ojkastl.de + +- Update to version 0.8.1: + * Release v0.8.1 + * Version bump + * Version bump + * Fix: interval overrides a default schedule + * Version bump + * Fix: Align log levels with slog + * Feat: Add cobra command for documentation + * Version bump + * Version bump + * Fix: Combine known actions for matching repository names in + bearerHandler + * Feat: Improve regctl arg completion + * Fix: Ignore unsupported entries in docker config + * Fix: Do not request offline refresh token + * Version bump + * Version bump + * Chore: Adding a logo + * Version bump + * Version bump + +------------------------------------------------------------------- +Wed Dec 11 06:54:31 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.8.0: + * Release v0.8.0 + * Feat: Support incomplete subject descriptor + * Fix: Handle repeated digest in copy with external referrers + * Feat: Support external referrers in regsync + * Version bump + * Fix: Platform test for darwin/macos should not add variant + * Feat: Document community maintained packages + * Chore: Remove unused short arg parameters + * Feat: Copy image with external referrers + * Feat: Add external flag to regctl artifact put + * Feat: Include source in referrers response + * Version bump + * Feat: Image mod environment variables + * Feat: Support referrers in an external repository + * Version bump + * Chore: Improve error message when inspecting artifacts + * Version bump + * Feat: Allow plus in ocidir path + * Fix: Inject release notes by file + * Feat: Move logrus calls into files excluded by wasm + * Breaking: Disable legacy packages by default. + * Switch regsync to slog + * Feat: Switch regctl to slog + * Feat: Switch regbot to slog + * Version bump + * Feat: Refactor logging to use log/slog + +------------------------------------------------------------------- +Mon Nov 04 19:50:32 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.7.2: + * Release v0.7.2 + * Fix: Dedup warnings on image mod + * Fix: Race condition in the pqueue tests + * Fix: Add a warning if syft is not installed + * Chore: Update docker image base filesystem + * Chore: Remove OpenSSF scorecard and best practices + * Chore: Do not automatically assign myself + * Fix: Detect integer overflows on type conversion + * Feat: Add default host config + * Chore: Remove throttle package. + * Chore: Refactor to remove globals in regbot + * Chore: Refactoring to remove globals in regsync + * Fix: Prevent data race when reading blob and seeking + * Chore: Move throttle from config to reghttp + * Feat: Limit number of retries for a request + * Feat: Consolidate warnings + * Chore: Remove ReqPerSec in tests + * Feat: Support auth on redirect + * Refactor: Move logging into transport and rework backoff + * Refactor: Free up pqueue resources when last entry released + * Configure priority queue algorithm and reorder image copy steps + * Refactor: cleanup reghttp.Resp methods + * Refactor: remove time.Ticker for rate limiting + * Refactor: Remove reghttp.Resp interface + * Refactor: Remove digest calculation from reghttp + * Refactor: Remove multiple API support + * Feat: Add a priority queue for network requests + * Chore: Update staticcheck and fix linter warnings for Go 1.23 + * Fix: Lookup referrers when registry does not give digest with + head + * Fix: Update GHA output generating steps + +------------------------------------------------------------------- +Sun Aug 04 07:24:13 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.7.1: + * Release v0.7.1 + * Version bump + * Fix: Validate the digest of the ref when provided + * Version bump + * Option to output config with regctl artifact get + * Add funding.yml + * Tar file should use forward slashes + * Add WithDockerCredsFile() RegClient Opt + * Fix: Mod tracking of changed manifests + * Fix platform detection + * Remove docker build caching to GHA + +------------------------------------------------------------------- +Fri Jul 12 19:26:38 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.7.0: + * Release v0.7.0 + * Support pushing tagged manifests with different digest + algorithms + * Version bump + * Support changing digest algorithm + * Include a contributor list in the readme + * Enable docker caching of GHA builds + * Remove rwfs internal package + * Allow well known architectures as a platform + * Cleanup Dockerfile linter warnings + * Refactor pulling a platform specific manifest + * Add an experimental regctl ref command + * feat: allow ~ (tilde) in reference paths + * Fix: Enable deletion on olareg tests + * Feat: Return non-zero on a failed registry ping + * Handle nil blob reader + +------------------------------------------------------------------- +Thu Jul 11 11:00:22 UTC 2024 - Johannes Kastl + +- new package regclient: Docker and OCI Registry Client in Go and + tooling using those libraries diff --git a/regclient.obsinfo b/regclient.obsinfo new file mode 100644 index 0000000..2793050 --- /dev/null +++ b/regclient.obsinfo @@ -0,0 +1,4 @@ +name: regclient +version: 0.8.1 +mtime: 1739310065 +commit: 80af8a3ace6d8fb26bc1fa8e4c4a7ca3a9e877f2 diff --git a/regclient.spec b/regclient.spec new file mode 100644 index 0000000..298df92 --- /dev/null +++ b/regclient.spec @@ -0,0 +1,137 @@ +# +# spec file for package regclient +# +# Copyright (c) 2025 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/ +# + + +Name: regclient +Version: 0.8.1 +Release: 0 +Summary: OCI Registry Client in Go and tooling using those libraries +License: Apache-2.0 +URL: https://github.com/regclient/regclient +Source: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: bash-completion +BuildRequires: fish +BuildRequires: git +BuildRequires: go >= 1.22 +BuildRequires: zsh + +%description +Client interface for the registry API. This packages includes regctl for a +command line interface to manage registries. + +%package -n %{name}-bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description -n %{name}-bash-completion +Bash command line completion support for %{name}. + +%package -n %{name}-fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description -n %{name}-fish-completion +Fish command line completion support for %{name}. + +%package -n %{name}-zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description -n %{name}-zsh-completion +zsh command line completion support for %{name}. + +%prep +%autosetup -p 1 -a 1 + +%build +COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo)" + +for executable in regctl regsync regbot +do + go build \ + -mod=vendor \ + -buildmode=pie \ + -trimpath \ + -tags nolegacy \ + -buildvcs=false \ + -ldflags="-buildid= -X github.com/regclient/regclient/internal/version.vcsTag=%{version}" \ + -o bin/${executable} ./cmd/${executable} +done + +%install + +for executable in regctl regsync regbot +do + + # Install the binary. + install -D -m 0755 bin/${executable} %{buildroot}/%{_bindir}/${executable} + + # create the bash completion file + mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/ + %{buildroot}/%{_bindir}/${executable} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/${executable} + + # create the fish completion file + mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/ + %{buildroot}/%{_bindir}/${executable} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/${executable}.fish + + # create the zsh completion file + mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/ + %{buildroot}/%{_bindir}/${executable} completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_${executable} + +done + +%check + +for executable in regctl regsync regbot +do + %{buildroot}/%{_bindir}/${executable} version | grep %{version} +done + +%files +%doc README.md +%license LICENSE +%{_bindir}/regbot +%{_bindir}/regctl +%{_bindir}/regsync + +%files -n %{name}-bash-completion +%{_datarootdir}/bash-completion/completions/regbot +%{_datarootdir}/bash-completion/completions/regctl +%{_datarootdir}/bash-completion/completions/regsync + +%files -n %{name}-fish-completion +%{_datarootdir}/fish/vendor_completions.d/regbot.fish +%{_datarootdir}/fish/vendor_completions.d/regctl.fish +%{_datarootdir}/fish/vendor_completions.d/regsync.fish + +%files -n %{name}-zsh-completion +%{_datarootdir}/zsh/site-functions/_regbot +%{_datarootdir}/zsh/site-functions/_regctl +%{_datarootdir}/zsh/site-functions/_regsync + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..ef7fd83 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d0d56d338abff7e8a5e7473e6d747f5cd70a7a78c7c48fc0afdfbb9e9c02e57 +size 1852362