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

Error: build constraints exclude all Go files in /home/user/go/bin/pkg/mod/github.com/rakyll/magicmime@v0.1.0 #36

Closed
anoduck opened this issue Nov 8, 2021 · 1 comment

Comments

@anoduck
Copy link

anoduck commented Nov 8, 2021

I am attempting to install Pistol, and I am running into an error involving magic mime.

doronbehar/pistol#76

The error states:

imports github.com/rakyll/magicmime: build constraints exclude all Go files in /home/user/go/bin/pkg/mod/github.com/rakyll/magicmime@v0.1.0

This is a new one for both me and the developer of pistol, and after doing some digging, an issue was discovered in the golang repository that mentions a potential solution to the issue by ensuring package main is used to denote the main script of the package.

golang/go#24068 (comment)

I attempted the suggested resolution, which created another error, because there is no main function in the source code.

So I am inquiring about a workaround that would allow me to use magicmime to install pistol.

@anoduck
Copy link
Author

anoduck commented Nov 20, 2021

Could a main function please be added to the source code to allow magicmime to be called by other libraries?

@anoduck anoduck closed this as completed Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant