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

chore: precompile skip build tags if empty #483

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

harry-hov
Copy link
Contributor

Description

Skip adding build tags while precompiling a file if arg tags is empty. This saves us from error parsing //go:build line: unexpected end of expression, if tags is empty. Also gives us the flexibility to skip build tags if needed.

Skip adding build tags while precompiling a file if arg tags is empty. This
saves us from error "parsing //go:build line: unexpected end of expression",
if arg `tags` is empty. Also gives us the flexibility to skip build tags
if needed.

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
@harry-hov harry-hov requested a review from a team as a code owner January 25, 2023 18:30
@harry-hov harry-hov self-assigned this Jan 25, 2023
Copy link
Member

@moul moul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@moul moul merged commit 3998197 into gnolang:master Jan 25, 2023
harry-hov added a commit to harry-hov/gno that referenced this pull request Jan 27, 2023
Skip adding build tags while precompiling a file if arg tags is empty. This
saves us from error "parsing //go:build line: unexpected end of expression",
if arg `tags` is empty. Also gives us the flexibility to skip build tags
if needed.

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants