Skip to content

Fix obscure 'go generate' crash.#2173

Merged
tlimoncelli merged 1 commit into
DNSControl:masterfrom
systemcrash:generate_fix
Mar 15, 2023
Merged

Fix obscure 'go generate' crash.#2173
tlimoncelli merged 1 commit into
DNSControl:masterfrom
systemcrash:generate_fix

Conversation

@systemcrash
Copy link
Copy Markdown
Contributor

My IDE compiled an .md file to .html in the documentation folder.

The usual:

go fmt ./...
go generate
go mod tidy

started to crash inexplicably. No warning or error messages. WTF.

This change means we recover successfully from parseFrontMatter() and ID the offending file.

Hint: generate does not like stray .html files in the documentation folder. :/

My IDE compiled an .md file to .html in the documentation folder.

The usual:

go fmt ./...
go generate
go mod tidy

started to crash inexplicably. No warning or error messages. WTF.

This change means we recover successfully from parseFrontMatter() and ID
the offending file.

Hint: 'generate' does not like stray .html files in the documentation
folder. :/
@tlimoncelli tlimoncelli merged commit fb6a79a into DNSControl:master Mar 15, 2023
@systemcrash systemcrash deleted the generate_fix branch March 15, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants