-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
macOS: Unable to build using Go Modules #832
Comments
i meet the same issue. ProductName: Mac OS X
ProductVersion: 10.15.3
BuildVersion: 19D76 uname -a is:
|
Is there any solution for this now? |
@axetroy no good solution. But as a work-around you can manually copy the missing source/header files to your The solution is to either add dummy |
@mafredri Thx. This issue should have stumped too many people |
Weeks or months ago I tried to rename Will try the empty .go file workaround, to satisfy this (once again) broken go-mod. |
…odules not including C files Supersedes shirou#885 by @afontaine
Describe the bug
host/include/smc.h
andhost/include/smc.c
. These files are in theinclude
sub-directory. This directory includes no go files, so Go modules does not include them whengo mod vendor
is used. Either the h & c files should be moved into the host directory, or a dummy go file should be added toinclude
To Reproduce
Go mod vendor gopsutil, then try to build:
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]uname -a
]The text was updated successfully, but these errors were encountered: