-
Notifications
You must be signed in to change notification settings - Fork 888
chore: keep docs/admin/prometheus.md if make target fails #5284
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
Conversation
Makefile
Outdated
yarn run format:write | ||
endif | ||
.PRECIOUS: docs/admin/prometheus.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use this for other tasks so I don't think we should use it here otherwise devs may commit unformatted docs. I think removing the format:check should be good enough.
Can you change the format:write to only do it on the single file as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory, when make
receives a signal to quit/kill, it should delete all target files, so in this case PRECIOUS
seems to be reasonable.
I can try without the marker and see if it's sufficient. I can iterate on it if it isn't.
@@ -29,45 +29,45 @@ The environment variable `CODER_PROMETHEUS_ENABLE` will be enabled automatically | |||
|
|||
<!-- Code generated by 'make docs/admin/prometheus.md'. DO NOT EDIT --> | |||
|
|||
| Name | Type | Description | Labels | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is interesting. It seems that prettier
is skipping docs
.
Closing in favor of #5285 |
Spotted in: https://github.com/coder/coder/actions/runs/3617487847/jobs/6096383996
When
make gen
fails, target files are deleted. The filedocs/admin/prometheus.md
is special, as thegen
modifies it in-place. We don't want it to be deleted.