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

--version doesn't work #1947

Open
yonas opened this issue Dec 11, 2024 · 2 comments
Open

--version doesn't work #1947

yonas opened this issue Dec 11, 2024 · 2 comments
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@yonas
Copy link

yonas commented Dec 11, 2024

Running task --version outputs Task version: (devel) ().

Tested using source for the latest release: https://github.com/go-task/task/archive/refs/tags/v3.40.1.tar.gz

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Dec 11, 2024
@pd93
Copy link
Member

pd93 commented Dec 11, 2024

@yonas Are you building the source yourself or installing a precompiled binary? If the former, then this is expected. We get the version information at build-time from Git. If you're building yourself, you need to either set this by using ldflags or by building inside our Git repo.

Generally, I would recommend that you install Task via one of the methods listed in our docs unless there is a specific reason why you can't.

@yonas
Copy link
Author

yonas commented Dec 11, 2024

@pd93 Building from source. I get the same problem if it's build from a git checkout with HEAD being the v3.40.1 tag:

32fa3a0 - (grafted, HEAD, tag: v3.40.1) v3.40.1 (5 days ago) <Andrey Nering>

Using go install works, but it's not as useful to me since this is going to be submitted as a patch for the FreeBSD port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

3 participants