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

mime.TypeByExtension(".js") returns the wrong value for JavaScript files on Windows #93

Closed
mxschmitt opened this issue Dec 20, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mxschmitt
Copy link

mxschmitt commented Dec 20, 2020

Upstream issue: golang/go#32350
Operating system: Windows only

Minimal reproducible:

package main

import (
	"fmt"
	"mime"
)

func main() {
	fmt.Println(mime.TypeByExtension(".js"))
        // Expected: application/javascript
        // Actual: text/plain
}

Idea: Maybe implement the workaround and add the registry entry so that users won't run into this issue? Seems like setting a specific registry key would fix it.

@Sergey-Murtazin Sergey-Murtazin added the bug Something isn't working label Oct 21, 2021
@Sergey-Murtazin
Copy link
Contributor

Hi, @mxschmitt !
Thank you for the report!

As you mentioned, this issue is not related to setup-go action but to go itself.
We provide packages as is, so we would not like to change the default behaviour of packages or implement any workaround at the action level.

I'm closing this issue.
Please feel free to contact us if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants