Skip to content

Strip newline from Go build task's LDFLAGS value #33

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
Jun 18, 2021
Merged

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jun 18, 2021

The default behavior of the YAML folded block style is to have a final newline. Even though it seems to work fine as-is,
since this variable defines a flag used in a command, it is more appropriate to not have a newline. This is achieved by
adding the "strip chomping indicator".

This is the way it is configured in Arduino Lint, where it is working nicely:
https://github.com/arduino/arduino-lint/blob/5ef264939ff22a4a825df2e44acdd5033dd16e00/Taskfile.yml#L281

The default behavior of the YAML folded block style is to have a final newline. Even though it seems to work fine as-is,
since this variable defines a flag used in a command, it is more appropriate to not have a newline. This is achieved by
adding the "strip chomping indicator".
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 18, 2021
@per1234 per1234 requested review from silvanocerza and rsora June 18, 2021 10:03
@per1234 per1234 merged commit 61ad067 into main Jun 18, 2021
@per1234 per1234 deleted the ldflags-syntax branch June 18, 2021 10:24
@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: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants