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

New pygmentize detection breaks in go < 1.16 #40

Closed
osteele opened this issue Jun 19, 2021 · 0 comments
Closed

New pygmentize detection breaks in go < 1.16 #40

osteele opened this issue Jun 19, 2021 · 0 comments
Assignees
Labels

Comments

@osteele
Copy link
Owner

osteele commented Jun 19, 2021

(As referenced here:) tags/highlight.go won't compile in go < 1.16, because it uses "io/fs":

build github.com/osteele/gojekyll: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

Previous versions used this code to test for the absence of the pygmentize command, but it does not work in go 1.16 because the error is not on the specified type:

	if e.Err == exec.ErrNotFound {

831ea53 changed to use this code, but this code does not compile in go < 1.16:

	if pathErr, ok := err.(*fs.PathError); ok {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant