Skip to content
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

Duf version flag does not return version number in POP_OS #184

Open
talk2sohail opened this issue Jul 1, 2022 · 1 comment
Open

Duf version flag does not return version number in POP_OS #184

talk2sohail opened this issue Jul 1, 2022 · 1 comment

Comments

@talk2sohail
Copy link

I installed duf from apt package manager in POP!_OS 22.04. And when I checked the version it is showing me this.
duf (built from source)

apt policy duf gives something like below:

duf:
Installed: 0.6.2-1build1
Candidate: 0.6.2-1build1
Version table:
*** 0.6.2-1build1 500
500 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
100 /var/lib/dpkg/status

Is it the expected behaiour? Ideally --version flag should return the version nnumber and not the message. Please let me know if I missed anything.

@muesli
Copy link
Owner

muesli commented Jul 1, 2022

This is indeed a packaging issue. go build needs to be run with the version information, like:

go build -ldflags -X main.Version=${pkgver} -X main.CommitSHA=${commit}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants