Skip to content

Suppress innocuous error message from tag determination #129

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

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Dec 22, 2020

The taskfile uses a Git command to get the current tag name. When there is no tag, it produces an error message every time a task is run:

fatal: No tags can describe 'a58dfe994fdd94aa98ccc98b327d49f347384c2f'.
Try --always, or create some tags.

This error message is expected and doesn't impact the functionality of the taskfile, but it might cause confusion. The
solution is to redirect the stderr from the command to /dev/null, which won't affect the functionality since the tag
name is output on stdout.

The taskfile uses a Git command to get the current tag name. When there is no tag, it produces an error message every time a task is run:

fatal: No tags can describe 'a58dfe994fdd94aa98ccc98b327d49f347384c2f'.
Try --always, or create some tags.

This error message is expected and doesn't impact the functionality of the taskfile, but it might cause confusion. The
solution is to redirect the stderr from the command to /dev/null, which won't affect the functionality since the tag
name is output on stdout.
@per1234 per1234 force-pushed the per1234/suppress-tag-error branch from 48ce84b to eaa1267 Compare January 4, 2021 12:27
@per1234 per1234 merged commit d241e27 into main Jan 4, 2021
@per1234 per1234 deleted the per1234/suppress-tag-error branch January 4, 2021 13:36
@per1234 per1234 added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Sep 29, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants