Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] age does not have version number set
@ 2021-12-02  5:56 twpayne
  2021-12-03  3:53 ` [ISSUE] [CLOSED] " sgn
  0 siblings, 1 reply; 2+ messages in thread
From: twpayne @ 2021-12-02  5:56 UTC (permalink / raw)
  To: ml

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

New issue by twpayne on void-packages repository

https://github.com/void-linux/void-packages/issues/34343

Description:
### System

* xuname:  
  `Void 5.4.0-86-generic x86_64 GenuineIntel uptodate rFF`
* package:  
  `age-1.0.0_1`

### Expected behavior

`age --version` should print age's version number:

```console
# age --version
1.0.0
```

### Actual behavior

`age --version` prints `(devel)`:

```console
# age --version
(devel)
```

### Steps to reproduce the behavior

```console
$ docker run -it ghcr.io/void-linux/void-linux:20211130rc01-full-x86_64 /bin/sh
# xbps-install --sync --update --yes age
...
[*] Configuring unpacked packages
age-1.0.0_1: configuring ...
age-1.0.0_1: installed successfully.

1 downloaded, 1 installed, 0 updated, 1 configured, 0 removed.
# age --version
(devel)
```

### Explanation

age's version number needs to be set a build time by passing
```
-ldflags "-X main.Version=$VERSION"
```
to `go build`. For an example, see [age's own build GitHub Action](https://github.com/FiloSottile/age/blob/main/.github/workflows/build.yml#L34).

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

* Re: [ISSUE] [CLOSED] age does not have version number set
  2021-12-02  5:56 [ISSUE] age does not have version number set twpayne
@ 2021-12-03  3:53 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2021-12-03  3:53 UTC (permalink / raw)
  To: ml

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

Closed issue by twpayne on void-packages repository

https://github.com/void-linux/void-packages/issues/34343

Description:
### System

* xuname:  
  `Void 5.4.0-86-generic x86_64 GenuineIntel uptodate rFF`
* package:  
  `age-1.0.0_1`

### Expected behavior

`age --version` should print age's version number:

```console
# age --version
1.0.0
```

### Actual behavior

`age --version` prints `(devel)`:

```console
# age --version
(devel)
```

### Steps to reproduce the behavior

```console
$ docker run -it ghcr.io/void-linux/void-linux:20211130rc01-full-x86_64 /bin/sh
# xbps-install --sync --update --yes age
...
[*] Configuring unpacked packages
age-1.0.0_1: configuring ...
age-1.0.0_1: installed successfully.

1 downloaded, 1 installed, 0 updated, 1 configured, 0 removed.
# age --version
(devel)
```

### Explanation

age's version number needs to be set a build time by passing
```
-ldflags "-X main.Version=$VERSION"
```
to `go build`. For an example, see [age's own build GitHub Action](https://github.com/FiloSottile/age/blob/main/.github/workflows/build.yml#L34).

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

end of thread, other threads:[~2021-12-03  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02  5:56 [ISSUE] age does not have version number set twpayne
2021-12-03  3:53 ` [ISSUE] [CLOSED] " sgn

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).