-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 doctoc detection in verify-doctoc.sh #9112
Conversation
9afcbea
to
e59776c
Compare
e59776c
to
a57d983
Compare
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.
Just playing around with this and it looks like this script doesn't work at all - or at least not with the version of doctoc i've installed. I'm constantly just getting an error.
@sbueringer did this work for you?
What error are you getting? I think for me it works in general but the way we define the list of files is broken (aka it only does something if I use something like this without the newlines: Not sure how I can get the version of this doctoc npm module |
Seems to be latest (https://www.npmjs.com/package/doctoc) |
This is what I'm getting too. Would it be better to fix this in this PR? I don't know what the value of fixing the check is if the doctoc command itself doesn't work. |
Working on a fix, give me a few minutes |
a57d983
to
aa605ee
Compare
exit 0 | ||
fi | ||
|
||
doctoc ./CONTRIBUTING.md docs/release/release-tasks.md docs/scope-and-objectives.md docs/staging-use-cases.md docs/proposals |
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.
Seems a lot easier than the old version. Also it doesn't hide if it does something...
Now it works.. Updated the list to include proposals + dropped some documents that don't have and don't need a toc |
Absolutely. I didn't know that it doesn't work. I tested this script in CAPV and I think in CAPV it worked because I only used it for a single file |
Signed-off-by: Stefan Büringer [email protected]
aa605ee
to
e12200e
Compare
@@ -573,7 +576,7 @@ In this cases for ServerSideApply to work properly it is required to ensure the | |||
type definitions, like +MapType or +MapTypeKey, see [merge strategy](https://kubernetes.io/docs/reference/using-api/server-side-apply/#merge-strategy) for more details. | |||
|
|||
Note: in order to allow the topology controller to execute templates rotation only when strictly necessary, it is necessary | |||
to implement specific handling of dry run operations in the templates webhooks as described in [Required Changes on providers from 1.1 to 1.2](https://cluster-api.sigs.k8s.io/developer/providers/v1.1-to-v1.2.html#required-api-changes-for-providers). | |||
to implement specific handling of dry run operations in the templates webhooks as described in [Required Changes on providers from 1.1 to 1.2](https://cluster-api.sigs.k8s.io/developer/providers/migrations/v1.1-to-v1.2#required-api-changes-for-providers). |
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.
Seems to be the first time we're touching this file since we published the v1.5 book
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.
Working and much simpler thanks!
/lgtm
/approve
@@ -573,7 +576,7 @@ In this cases for ServerSideApply to work properly it is required to ensure the | |||
type definitions, like +MapType or +MapTypeKey, see [merge strategy](https://kubernetes.io/docs/reference/using-api/server-side-apply/#merge-strategy) for more details. | |||
|
|||
Note: in order to allow the topology controller to execute templates rotation only when strictly necessary, it is necessary | |||
to implement specific handling of dry run operations in the templates webhooks as described in [Required Changes on providers from 1.1 to 1.2](https://cluster-api.sigs.k8s.io/developer/providers/v1.1-to-v1.2.html#required-api-changes-for-providers). | |||
to implement specific handling of dry run operations in the templates webhooks as described in [Required Changes on providers from 1.1 to 1.2](https://cluster-api.sigs.k8s.io/developer/providers/migrations/v1.1-to-v1.2#required-api-changes-for-providers). |
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.
Thanks for updating this!
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.
Had to :D
(markdown checker action was failing)
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.
I did see it in the weekly run earlier, but didn't get around to fixing.
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.
Ah good to know!
LGTM label has been added. Git tree hash: 0150390a4bcf7bba755dfcf0a21adace6747e995
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: killianmuldoon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/area documentation |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #9114