-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: infisical 0.14.2 #46653
Conversation
Ok, I just woke up and this looks terrible. Going to refactor-fix |
From aa70f48c14a71f0101b1a1400baa79621a45337d Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 13 Oct 2023 13:16:27 -0400
Subject: [PATCH] fixup! New package: infisical 0.14.2
---
srcpkgs/infisical/patches/fix_login..go.patch | 4 +-
srcpkgs/infisical/template | 58 ++++++-------------
2 files changed, 21 insertions(+), 41 deletions(-)
diff --git a/srcpkgs/infisical/patches/fix_login..go.patch b/srcpkgs/infisical/patches/fix_login..go.patch
index 39d05f4f62b..90bcc9ba20b 100644
--- a/srcpkgs/infisical/patches/fix_login..go.patch
+++ b/srcpkgs/infisical/patches/fix_login..go.patch
@@ -1,5 +1,5 @@
---- a/packages/cmd/login.go 2023-10-13 03:18:59.436901696 -0300
-+++ b/packages/cmd/login.go 2023-10-13 03:23:37.911320438 -0300
+--- a/cli/packages/cmd/login.go 2023-10-13 03:18:59.436901696 -0300
++++ b/cli/packages/cmd/login.go 2023-10-13 03:23:37.911320438 -0300
@@ -117,7 +117,7 @@
err = util.StoreUserCredsInKeyRing(&userCredentialsToBeStored)
diff --git a/srcpkgs/infisical/template b/srcpkgs/infisical/template
index 5f7ddd57399..5ee034221e5 100644
--- a/srcpkgs/infisical/template
+++ b/srcpkgs/infisical/template
@@ -2,53 +2,33 @@
pkgname=infisical
version=0.14.2
revision=1
-archs="x86_64 aarch64"
-create_wrksrc=true
-makedepends="go wget tar"
-checkdepends="go git"
-short_desc="CLI tool for infisical, an open-source secret management platform"
+build_style=go
+build_helper="qemu"
+build_wrksrc="cli"
+go_import_path="github.com/Infisical/infisical-merge"
+go_ldflags="-X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION=${version}"
+checkdepends="git"
+short_desc="Open-source secret management platform (CLI)"
maintainer="Matheus Garcias <matheus.dasilva.garcias@gmail.com>"
license="MIT"
homepage="https://infisical.com"
distfiles="https://github.com/Infisical/infisical/archive/refs/tags/infisical-cli/v${version}.tar.gz"
checksum=313caf8d4e6ca5fd88d4f2adf72c721958d602404b6f80611a78a2f757d993f1
-fetch_cmd="wget"
-nopie=true
-XBPS_CHECK_PKGS=true
-unset build_style
-
-function do_extract() {
- tar -xvzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/v${version}.tar.gz \
- --strip-components=2 \
- infisical-infisical-cli-v${version}/cli
-}
-
-function do_build() {
- go build \
- -o infisical \
- --ldflags="-X \"github.com/Infisical/infisical-merge/packages/util.CLI_VERSION=${version}\"" \
- ${XBPS_BUILDDIR}/${pkgname}-${version}
+do_check() {
+ go test ./...
}
-function do_check() {
- [ "$(./infisical --version)" = "infisical version ${version}" ] || return 1
- go test github.com/Infisical/infisical-merge/packages/cmd
- go test github.com/Infisical/infisical-merge/report
- go test github.com/Infisical/infisical-merge/config
- go test github.com/Infisical/infisical-merge/detect
-}
+post_install() {
+ mv "${DESTDIR}"/usr/bin/infisical-merge "${DESTDIR}"/usr/bin/infisical
-function do_install() {
- vbin infisical
-}
+ go run . man > infisical.1
+ vman infisical.1
-function post_install() {
- go run . man | gzip -c > "infisical.1.gz"
- vman "infisical.1.gz"
+ for sh in bash zsh fish; do
+ go run . completion "$sh" > "infisical.$sh"
+ vcompletion "infisical.$sh" "$sh"
+ done
- for sh in bash zsh fish; do
- go run . completion "$sh" > "infisical.$sh"
- vcompletion "infisical.$sh" "$sh"
- done
-}
\ No newline at end of file
+ vlicense "${wrksrc}"/LICENSE
+}
--
2.42.0
|
ah that probably worked for me because I have binfmts set up locally. instead of |
Wow, thank you very much for the tips, changes and the very clean patch @classabbyamp .I'll do my best to bring cleaner PRs! |
you could also disable telemetry
|
Well spotted! Thank you. |
@classabbyamp I think I'm done with it, I tested personally on my computer (x86_64-glibc) and my raspberry pi 4 (aarch64-glibc) and added to the list every architecture that were cross built successfully. I can squash the commits and add co authors as I did. Anything you think that should be changed? |
squash but there's no need to add coauthors |
Done. Thanks for the guidance! |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
bump |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
bump |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Testing the changes
New package
Local build testing