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

Fix Makefile: use spaces instead of tabs in instructions before targets #792

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

plevart
Copy link
Contributor

@plevart plevart commented Dec 12, 2023

Unfortunately, in the following PR #790 that was already merged into master, there is a syntax error in the Makefile. I didn't use Makefiles for decades so I forgot that tabs are a must in the target definitions, but I never even knew that they must not be used before the targets, in the instructions that are evaluated during parsing of Makefile. So this patch fixes that. The faulty Makefile is OK when CONTAINER variable was either docker or podman, but when something else is used, I got the following output:

[peter@sun vm-helm-charts]$ CONTAINER=faulty make sync-dashboards
Makefile:18: *** recipe commences before first target.  Stop.

After this patch, the values docker and podman still work as expected, and any other value give correct error message:

[peter@sun vm-helm-charts]$ CONTAINER=faulty make sync-dashboards
Makefile:19: *** CONTAINER values currently supported are: docker, podman.  Stop.

Sorry for inconvenience.

...in the directives or else the following error gets emitted for wrong CONTAINER value:

[helm-charts]$ CONTAINER=faulty make sync-dashboards
Makefile:19: *** recipe commences before first target.  Stop.
Copy link
Contributor

@zekker6 zekker6 left a comment

Choose a reason for hiding this comment

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

@plevart Thank you for the fix!

@zekker6 zekker6 merged commit 44fdd4d into VictoriaMetrics:master Dec 12, 2023
4 checks passed
@plevart plevart deleted the vm-stack-podman-fix branch December 12, 2023 18:07
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

Successfully merging this pull request may close these issues.

2 participants