Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: flyctl-0.0.351
@ 2022-07-09 18:52 Goorzhel
  2022-07-09 18:53 ` classabbyamp
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 18:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

There is a new pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 1052 bytes --]

From f1c304e8ca84edea7b37ad7d2d1cbe7ec70aac4e Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..58bc08e5a0b8
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,21 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=gnu-makefile
+makedepends="go"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+nopie=yes
+
+do_check() {
+	make test
+}
+
+do_install() {
+	vbin bin/flyctl flyctl
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
@ 2022-07-09 18:53 ` classabbyamp
  2022-07-09 18:57 ` [PR REVIEW] " classabbyamp
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: classabbyamp @ 2022-07-09 18:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179590219

Comment:
> flyctl v0.0.0-1657391288+dev

you'll probably need to set some kind of go ld flags for the version to show correctly


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
  2022-07-09 18:53 ` classabbyamp
@ 2022-07-09 18:57 ` classabbyamp
  2022-07-09 19:21 ` [PR PATCH] [Updated] " Goorzhel
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: classabbyamp @ 2022-07-09 18:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#discussion_r917298230

Comment:
i think using the go build-style is better. almost all the makefile does is `go build`, and this will take care of do_install too.

you can probably run `go generate ./...` in pre_build

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
  2022-07-09 18:53 ` classabbyamp
  2022-07-09 18:57 ` [PR REVIEW] " classabbyamp
@ 2022-07-09 19:21 ` Goorzhel
  2022-07-09 19:51 ` Goorzhel
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 19:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 972 bytes --]

From 50a1ce0863510726630eafb5d4c1376ea8eabac0 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..e6e9fe51ca53
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,12 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+go_import_path="github.com/superfly/flyctl"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (2 preceding siblings ...)
  2022-07-09 19:21 ` [PR PATCH] [Updated] " Goorzhel
@ 2022-07-09 19:51 ` Goorzhel
  2022-07-09 20:01 ` Goorzhel
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 19:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 1097 bytes --]

From 052702ead1cf321b96d492c2cdbdf8e2925ef8ca Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..91336f1e5923
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,20 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+go_import_path="github.com/superfly/flyctl"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+post_install() {
+	go generate ./...
+	bash scripts/generate_docs.sh
+	for i in out/*.md; do
+		vdoc $i
+	done
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (3 preceding siblings ...)
  2022-07-09 19:51 ` Goorzhel
@ 2022-07-09 20:01 ` Goorzhel
  2022-07-09 20:02 ` Goorzhel
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 20:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 1422 bytes --]

From 2530f58470628078f568f8ddcc6a24298b5e194c Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..ba76ccec5bd7
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,26 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+go_import_path="github.com/superfly/flyctl"
+go_ldflags="
+ -X github.com/superfly/flyctl/internal/buildinfo.environment=production
+ -X github.com/superfly/flyctl/internal/buildinfo.version=$version
+ -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
+ -X github.com/superfly/flyctl/internal/buildinfo.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
+"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+post_install() {
+	go generate ./...
+	bash scripts/generate_docs.sh
+	for i in out/*.md; do
+		vdoc $i
+	done
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (4 preceding siblings ...)
  2022-07-09 20:01 ` Goorzhel
@ 2022-07-09 20:02 ` Goorzhel
  2022-07-09 20:02 ` Goorzhel
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 349 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179599003

Comment:
```
❯ ./xbps-src pkg $(git b) && xi -fy flyctl && flyctl version
flyctl v0.0.351 linux/amd64 Commit: df8c42a BuildDate: 2022-07-09T20:01:29Z

❯ git config alias.b
rev-parse --abbrev-ref HEAD
```


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (5 preceding siblings ...)
  2022-07-09 20:02 ` Goorzhel
@ 2022-07-09 20:02 ` Goorzhel
  2022-07-09 20:08 ` Goorzhel
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179599003

Comment:
```
❯ ./xbps-src pkg $(git b) && xi -fy flyctl && flyctl version
<...>
flyctl v0.0.351 linux/amd64 Commit: df8c42a BuildDate: 2022-07-09T20:01:29Z

❯ git config alias.b
rev-parse --abbrev-ref HEAD
```


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (6 preceding siblings ...)
  2022-07-09 20:02 ` Goorzhel
@ 2022-07-09 20:08 ` Goorzhel
  2022-07-10  0:24 ` [PR REVIEW] " CameronNemo
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-09 20:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179599761

Comment:
Last obstacle: ARM doesn't like `go generate ./...`.
```
generating cli help
fork/exec /tmp/go-build3724286489/b001/exe/helpgen: exec format error
```

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (7 preceding siblings ...)
  2022-07-09 20:08 ` Goorzhel
@ 2022-07-10  0:24 ` CameronNemo
  2022-07-10  0:41 ` classabbyamp
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: CameronNemo @ 2022-07-10  0:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

New review comment by CameronNemo on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#discussion_r917321975

Comment:
Should be a constant build date for reproducibility I think...

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR REVIEW] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (8 preceding siblings ...)
  2022-07-10  0:24 ` [PR REVIEW] " CameronNemo
@ 2022-07-10  0:41 ` classabbyamp
  2022-07-10  1:46 ` [PR PATCH] [Updated] " Goorzhel
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: classabbyamp @ 2022-07-10  0:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#discussion_r917323152

Comment:
yes, something like this:
https://github.com/void-linux/void-packages/blob/f64ff867bab6fcce90c2ef6e7c04865d2b2b2032/srcpkgs/chezmoi/template#L16-L22

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (9 preceding siblings ...)
  2022-07-10  0:41 ` classabbyamp
@ 2022-07-10  1:46 ` Goorzhel
  2022-07-10  1:46 ` Goorzhel
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-10  1:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 2855 bytes --]

From 2530f58470628078f568f8ddcc6a24298b5e194c Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH 1/2] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..ba76ccec5bd7
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,26 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+go_import_path="github.com/superfly/flyctl"
+go_ldflags="
+ -X github.com/superfly/flyctl/internal/buildinfo.environment=production
+ -X github.com/superfly/flyctl/internal/buildinfo.version=$version
+ -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
+ -X github.com/superfly/flyctl/internal/buildinfo.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
+"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+post_install() {
+	go generate ./...
+	bash scripts/generate_docs.sh
+	for i in out/*.md; do
+		vdoc $i
+	done
+}

From 26159041af630ab862d69bec36675bd091054692 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 18:42:31 -0700
Subject: [PATCH 2/2] flyctl: Reproducible date

---
 srcpkgs/flyctl/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
index ba76ccec5bd7..16718fe8f5f4 100644
--- a/srcpkgs/flyctl/template
+++ b/srcpkgs/flyctl/template
@@ -8,7 +8,6 @@ go_ldflags="
  -X github.com/superfly/flyctl/internal/buildinfo.environment=production
  -X github.com/superfly/flyctl/internal/buildinfo.version=$version
  -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
- -X github.com/superfly/flyctl/internal/buildinfo.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
 "
 short_desc="Command line tools for fly.io services"
 maintainer="Antonio Gurgel <antonio@goorzhel.com>"
@@ -17,6 +16,14 @@ homepage="https://github.com/superfly/flyctl"
 distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
 checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
 
+pre_build() {
+	local _date
+	if [ "$SOURCE_DATE_EPOCH" ]; then
+		_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" +"%Y-%m-%dT%H:%M:%SZ")"
+		go_ldflags+=" -X github.com/superfly/flyctl/internal/buildinfo.buildDate=${_date}"
+	fi
+}
+
 post_install() {
 	go generate ./...
 	bash scripts/generate_docs.sh

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (10 preceding siblings ...)
  2022-07-10  1:46 ` [PR PATCH] [Updated] " Goorzhel
@ 2022-07-10  1:46 ` Goorzhel
  2022-07-10  1:57 ` classabbyamp
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-10  1:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179635698

Comment:
I'll squash after the `go generate` problem is sorted.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (11 preceding siblings ...)
  2022-07-10  1:46 ` Goorzhel
@ 2022-07-10  1:57 ` classabbyamp
  2022-07-12  7:12 ` [PR PATCH] [Updated] " Goorzhel
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: classabbyamp @ 2022-07-10  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1179636683

Comment:
you'll probably need the qemu build helper and `vtargetrun` it

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (12 preceding siblings ...)
  2022-07-10  1:57 ` classabbyamp
@ 2022-07-12  7:12 ` Goorzhel
  2022-07-12  7:12 ` Goorzhel
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-12  7:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 1467 bytes --]

From abb10b65990d1cb51364e151d32b6a6cc36487f2 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..b3b0fcb78265
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,26 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+build_helper=qemu
+go_import_path="github.com/superfly/flyctl"
+go_ldflags="
+ -X github.com/superfly/flyctl/internal/buildinfo.environment=production
+ -X github.com/superfly/flyctl/internal/buildinfo.version=$version
+ -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
+"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+pre_build() {
+	local _date
+	if [ "$SOURCE_DATE_EPOCH" ]; then
+		_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" +"%Y-%m-%dT%H:%M:%SZ")"
+		go_ldflags+=" -X github.com/superfly/flyctl/internal/buildinfo.buildDate=${_date}"
+	fi
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (13 preceding siblings ...)
  2022-07-12  7:12 ` [PR PATCH] [Updated] " Goorzhel
@ 2022-07-12  7:12 ` Goorzhel
  2022-07-12  7:13 ` Goorzhel
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-12  7:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1181401767

Comment:
I'll deal with this `go generate` business later, in a separate PR for a subpackage `flyctl-docs`. I had something that worked a commit or two ago so I might as well start with that.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (14 preceding siblings ...)
  2022-07-12  7:12 ` Goorzhel
@ 2022-07-12  7:13 ` Goorzhel
  2022-07-21  6:30 ` Goorzhel
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-12  7:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1181401767

Comment:
I'll deal with this `go generate` business later, in a separate PR for a subpackage `flyctl-doc`. I had something that worked a commit or two ago so I might as well start with that.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (15 preceding siblings ...)
  2022-07-12  7:13 ` Goorzhel
@ 2022-07-21  6:30 ` Goorzhel
  2022-07-21 13:32 ` classabbyamp
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-21  6:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1191093966

Comment:
Another oversight:
```
❯ flyctl version      
Update available 0.0.351 -> v0.0.356.
Run "flyctl version update" to upgrade.
flyctl v0.0.351 linux/amd64 Commit: df8c42a BuildDate: 2022-07-10T01:45:12Z
```
That command curls a script to `sh`, the script's job being to install flyctl to `~/.fly/bin/flyctl`.

The warning can be suppressed with `export FLY_NO_UPDATE_CHECK=1`, but I wouldn't know where to set that on package installation (if it's feasible).

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (16 preceding siblings ...)
  2022-07-21  6:30 ` Goorzhel
@ 2022-07-21 13:32 ` classabbyamp
  2022-07-24 19:39 ` [PR PATCH] [Updated] " Goorzhel
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: classabbyamp @ 2022-07-21 13:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1191490498

Comment:
easiest way I see is to patch this check to always return false: https://github.com/superfly/flyctl/blob/240fbde85f6143191917932bc1d0e437b839c886/internal/update/update.go#L31

or something along those lines, and also maybe remove the definition of the upgrade command?

this would be a stop-gap alternative to asking upstream to add an ldflag to disable it properly

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (17 preceding siblings ...)
  2022-07-21 13:32 ` classabbyamp
@ 2022-07-24 19:39 ` Goorzhel
  2022-07-24 19:39 ` Goorzhel
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-24 19:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 4948 bytes --]

From abb10b65990d1cb51364e151d32b6a6cc36487f2 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sat, 9 Jul 2022 11:42:07 -0700
Subject: [PATCH 1/2] New package: flyctl-0.0.351

---
 srcpkgs/flyctl/template | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..b3b0fcb78265
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,26 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+build_helper=qemu
+go_import_path="github.com/superfly/flyctl"
+go_ldflags="
+ -X github.com/superfly/flyctl/internal/buildinfo.environment=production
+ -X github.com/superfly/flyctl/internal/buildinfo.version=$version
+ -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
+"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+pre_build() {
+	local _date
+	if [ "$SOURCE_DATE_EPOCH" ]; then
+		_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" +"%Y-%m-%dT%H:%M:%SZ")"
+		go_ldflags+=" -X github.com/superfly/flyctl/internal/buildinfo.buildDate=${_date}"
+	fi
+}

From c8c60c1a9f6183172a26048d38bd4b459a280ed1 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sun, 24 Jul 2022 12:37:43 -0700
Subject: [PATCH 2/2] flyctl: Suppress update mechanism

---
 .../0001-Suppress-update-mechanism.patch      | 96 +++++++++++++++++++
 1 file changed, 96 insertions(+)
 create mode 100644 srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch

diff --git a/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch b/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch
new file mode 100644
index 000000000000..9bce10353f4c
--- /dev/null
+++ b/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch
@@ -0,0 +1,96 @@
+From efa554240713f81a838dc6d9e3cefa739e4da563 Mon Sep 17 00:00:00 2001
+From: Antonio Gurgel <antonio@goorzhel.com>
+Date: Sun, 24 Jul 2022 12:35:32 -0700
+Subject: [PATCH] Suppress update mechanism
+
+---
+ internal/command/version/update.go  | 50 -----------------------------
+ internal/command/version/version.go |  1 -
+ internal/update/update.go           |  2 +-
+ 3 files changed, 1 insertion(+), 52 deletions(-)
+ delete mode 100644 internal/command/version/update.go
+
+diff --git a/internal/command/version/update.go b/internal/command/version/update.go
+deleted file mode 100644
+index 7a9f1378..00000000
+--- a/internal/command/version/update.go
++++ /dev/null
+@@ -1,50 +0,0 @@
+-package version
+-
+-import (
+-	"context"
+-	"errors"
+-	"fmt"
+-
+-	"github.com/blang/semver"
+-	"github.com/spf13/cobra"
+-
+-	"github.com/superfly/flyctl/internal/buildinfo"
+-	"github.com/superfly/flyctl/internal/cache"
+-	"github.com/superfly/flyctl/internal/command"
+-	"github.com/superfly/flyctl/internal/update"
+-	"github.com/superfly/flyctl/iostreams"
+-)
+-
+-func newUpdate() *cobra.Command {
+-	const (
+-		short = "Checks for available updates and automatically updates"
+-
+-		long = `Checks for update and if one is available, runs the appropriate
+-command to update the application.`
+-	)
+-
+-	return command.New("update", short, long, runUpdate)
+-}
+-
+-func runUpdate(ctx context.Context) error {
+-	release, err := update.LatestRelease(ctx, cache.FromContext(ctx).Channel())
+-	switch {
+-	case err != nil:
+-		return fmt.Errorf("failed determining latest release: %w", err)
+-	case release == nil:
+-		return fmt.Errorf("failed querying latest release information: %w", err)
+-	}
+-
+-	latest, err := semver.ParseTolerant(release.Version)
+-	if err != nil {
+-		return fmt.Errorf("error parsing latest release version number %q: %w",
+-			release.Version, err)
+-	}
+-
+-	if buildinfo.Version().GTE(latest) {
+-		return errors.New("no available update")
+-	}
+-
+-	io := iostreams.FromContext(ctx)
+-	return update.UpgradeInPlace(ctx, io, release.Prerelease)
+-}
+diff --git a/internal/command/version/version.go b/internal/command/version/version.go
+index 5ca34ed1..282b79eb 100644
+--- a/internal/command/version/version.go
++++ b/internal/command/version/version.go
+@@ -41,7 +41,6 @@ number and build date.`
+ 
+ 	version.AddCommand(
+ 		newInitState(),
+-		newUpdate(),
+ 	)
+ 
+ 	return version
+diff --git a/internal/update/update.go b/internal/update/update.go
+index ffb3022c..66134bef 100644
+--- a/internal/update/update.go
++++ b/internal/update/update.go
+@@ -41,7 +41,7 @@ func Check() bool {
+ 	case !cmdutil.IsTerminal(os.Stdout), !cmdutil.IsTerminal(os.Stderr):
+ 		return false
+ 	default:
+-		return true
++		return false
+ 	}
+ }
+ 
+-- 
+2.37.1
+

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (18 preceding siblings ...)
  2022-07-24 19:39 ` [PR PATCH] [Updated] " Goorzhel
@ 2022-07-24 19:39 ` Goorzhel
  2022-07-24 19:40 ` Goorzhel
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-24 19:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1193381650

Comment:
(I'll squash when it's ready to merge.)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (19 preceding siblings ...)
  2022-07-24 19:39 ` Goorzhel
@ 2022-07-24 19:40 ` Goorzhel
  2022-07-24 19:40 ` [PR PATCH] [Updated] " Goorzhel
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-24 19:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1193381650

Comment:
(I'll squash when it's ready to merge.)

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Updated] New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (20 preceding siblings ...)
  2022-07-24 19:40 ` Goorzhel
@ 2022-07-24 19:40 ` Goorzhel
  2022-08-06 21:01 ` Goorzhel
  2022-08-06 21:01 ` [PR PATCH] [Closed]: " Goorzhel
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-07-24 19:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

There is an updated pull request by Goorzhel against master on the void-packages repository

https://github.com/Goorzhel/void-packages flyctl
https://github.com/void-linux/void-packages/pull/37950

New package: flyctl-0.0.351
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


A patch file from https://github.com/void-linux/void-packages/pull/37950.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flyctl-37950.patch --]
[-- Type: text/x-diff, Size: 4699 bytes --]

From fd6310a2cc02f8772ea6dee3eba4363948236f87 Mon Sep 17 00:00:00 2001
From: Antonio Gurgel <antonio@goorzhel.com>
Date: Sun, 24 Jul 2022 12:40:48 -0700
Subject: [PATCH] New package: flyctl-0.0.351

---
 .../0001-Suppress-update-mechanism.patch      | 96 +++++++++++++++++++
 srcpkgs/flyctl/template                       | 26 +++++
 2 files changed, 122 insertions(+)
 create mode 100644 srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch
 create mode 100644 srcpkgs/flyctl/template

diff --git a/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch b/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch
new file mode 100644
index 000000000000..9bce10353f4c
--- /dev/null
+++ b/srcpkgs/flyctl/patches/0001-Suppress-update-mechanism.patch
@@ -0,0 +1,96 @@
+From efa554240713f81a838dc6d9e3cefa739e4da563 Mon Sep 17 00:00:00 2001
+From: Antonio Gurgel <antonio@goorzhel.com>
+Date: Sun, 24 Jul 2022 12:35:32 -0700
+Subject: [PATCH] Suppress update mechanism
+
+---
+ internal/command/version/update.go  | 50 -----------------------------
+ internal/command/version/version.go |  1 -
+ internal/update/update.go           |  2 +-
+ 3 files changed, 1 insertion(+), 52 deletions(-)
+ delete mode 100644 internal/command/version/update.go
+
+diff --git a/internal/command/version/update.go b/internal/command/version/update.go
+deleted file mode 100644
+index 7a9f1378..00000000
+--- a/internal/command/version/update.go
++++ /dev/null
+@@ -1,50 +0,0 @@
+-package version
+-
+-import (
+-	"context"
+-	"errors"
+-	"fmt"
+-
+-	"github.com/blang/semver"
+-	"github.com/spf13/cobra"
+-
+-	"github.com/superfly/flyctl/internal/buildinfo"
+-	"github.com/superfly/flyctl/internal/cache"
+-	"github.com/superfly/flyctl/internal/command"
+-	"github.com/superfly/flyctl/internal/update"
+-	"github.com/superfly/flyctl/iostreams"
+-)
+-
+-func newUpdate() *cobra.Command {
+-	const (
+-		short = "Checks for available updates and automatically updates"
+-
+-		long = `Checks for update and if one is available, runs the appropriate
+-command to update the application.`
+-	)
+-
+-	return command.New("update", short, long, runUpdate)
+-}
+-
+-func runUpdate(ctx context.Context) error {
+-	release, err := update.LatestRelease(ctx, cache.FromContext(ctx).Channel())
+-	switch {
+-	case err != nil:
+-		return fmt.Errorf("failed determining latest release: %w", err)
+-	case release == nil:
+-		return fmt.Errorf("failed querying latest release information: %w", err)
+-	}
+-
+-	latest, err := semver.ParseTolerant(release.Version)
+-	if err != nil {
+-		return fmt.Errorf("error parsing latest release version number %q: %w",
+-			release.Version, err)
+-	}
+-
+-	if buildinfo.Version().GTE(latest) {
+-		return errors.New("no available update")
+-	}
+-
+-	io := iostreams.FromContext(ctx)
+-	return update.UpgradeInPlace(ctx, io, release.Prerelease)
+-}
+diff --git a/internal/command/version/version.go b/internal/command/version/version.go
+index 5ca34ed1..282b79eb 100644
+--- a/internal/command/version/version.go
++++ b/internal/command/version/version.go
+@@ -41,7 +41,6 @@ number and build date.`
+ 
+ 	version.AddCommand(
+ 		newInitState(),
+-		newUpdate(),
+ 	)
+ 
+ 	return version
+diff --git a/internal/update/update.go b/internal/update/update.go
+index ffb3022c..66134bef 100644
+--- a/internal/update/update.go
++++ b/internal/update/update.go
+@@ -41,7 +41,7 @@ func Check() bool {
+ 	case !cmdutil.IsTerminal(os.Stdout), !cmdutil.IsTerminal(os.Stderr):
+ 		return false
+ 	default:
+-		return true
++		return false
+ 	}
+ }
+ 
+-- 
+2.37.1
+
diff --git a/srcpkgs/flyctl/template b/srcpkgs/flyctl/template
new file mode 100644
index 000000000000..b3b0fcb78265
--- /dev/null
+++ b/srcpkgs/flyctl/template
@@ -0,0 +1,26 @@
+# Template file for 'flyctl'
+pkgname=flyctl
+version=0.0.351
+revision=1
+build_style=go
+build_helper=qemu
+go_import_path="github.com/superfly/flyctl"
+go_ldflags="
+ -X github.com/superfly/flyctl/internal/buildinfo.environment=production
+ -X github.com/superfly/flyctl/internal/buildinfo.version=$version
+ -X github.com/superfly/flyctl/internal/buildinfo.commit=df8c42a
+"
+short_desc="Command line tools for fly.io services"
+maintainer="Antonio Gurgel <antonio@goorzhel.com>"
+license="Apache-2.0"
+homepage="https://github.com/superfly/flyctl"
+distfiles="https://github.com/superfly/flyctl/archive/refs/tags/v${version}.tar.gz"
+checksum=fc6fe8fbdd5c6d4b8cea4216770c111a78b06264255345d20c9c768593b6033c
+
+pre_build() {
+	local _date
+	if [ "$SOURCE_DATE_EPOCH" ]; then
+		_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" +"%Y-%m-%dT%H:%M:%SZ")"
+		go_ldflags+=" -X github.com/superfly/flyctl/internal/buildinfo.buildDate=${_date}"
+	fi
+}

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (21 preceding siblings ...)
  2022-07-24 19:40 ` [PR PATCH] [Updated] " Goorzhel
@ 2022-08-06 21:01 ` Goorzhel
  2022-08-06 21:01 ` [PR PATCH] [Closed]: " Goorzhel
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-08-06 21:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

New comment by Goorzhel on void-packages repository

https://github.com/void-linux/void-packages/pull/37950#issuecomment-1207282231

Comment:
On second thought, I should package this when the release cadence has slowed down.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: [PR PATCH] [Closed]: New package: flyctl-0.0.351
  2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
                   ` (22 preceding siblings ...)
  2022-08-06 21:01 ` Goorzhel
@ 2022-08-06 21:01 ` Goorzhel
  23 siblings, 0 replies; 25+ messages in thread
From: Goorzhel @ 2022-08-06 21:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

There's a closed pull request on the void-packages repository

New package: flyctl-0.0.351
https://github.com/void-linux/void-packages/pull/37950

Description:
`flyctl` is a command-line interface for fly.io.

fly.io is [somewhat](https://xeiaso.net/blog/fly.io-heroku-replacement) like Heroku.

#### Testing the changes
- I tested the changes in this PR **briefly**.

```
❯ ./xbps-src pkg flyctl
<...>
❯ xi -y flyctl
<...>
❯ which flyctl
/usr/bin/flyctl
❯ flyctl version
flyctl v0.0.0-1657391288+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:28:08Z
```

That `<commit>` seems to be a problem even if I build inside a git repo:
```
❯ gh repo clone superfly/flyctl
<...>
❯ cd flyctl
❯ make
<...>
❯ bin/flyctl version
flyctl v0.0.0-1657392531+dev linux/amd64 Commit: <commit> BuildDate: 2022-07-09T18:48:51Z
```

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements).


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2022-08-06 21:01 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-09 18:52 [PR PATCH] New package: flyctl-0.0.351 Goorzhel
2022-07-09 18:53 ` classabbyamp
2022-07-09 18:57 ` [PR REVIEW] " classabbyamp
2022-07-09 19:21 ` [PR PATCH] [Updated] " Goorzhel
2022-07-09 19:51 ` Goorzhel
2022-07-09 20:01 ` Goorzhel
2022-07-09 20:02 ` Goorzhel
2022-07-09 20:02 ` Goorzhel
2022-07-09 20:08 ` Goorzhel
2022-07-10  0:24 ` [PR REVIEW] " CameronNemo
2022-07-10  0:41 ` classabbyamp
2022-07-10  1:46 ` [PR PATCH] [Updated] " Goorzhel
2022-07-10  1:46 ` Goorzhel
2022-07-10  1:57 ` classabbyamp
2022-07-12  7:12 ` [PR PATCH] [Updated] " Goorzhel
2022-07-12  7:12 ` Goorzhel
2022-07-12  7:13 ` Goorzhel
2022-07-21  6:30 ` Goorzhel
2022-07-21 13:32 ` classabbyamp
2022-07-24 19:39 ` [PR PATCH] [Updated] " Goorzhel
2022-07-24 19:39 ` Goorzhel
2022-07-24 19:40 ` Goorzhel
2022-07-24 19:40 ` [PR PATCH] [Updated] " Goorzhel
2022-08-06 21:01 ` Goorzhel
2022-08-06 21:01 ` [PR PATCH] [Closed]: " Goorzhel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).