-installsuffix 参数没有指定后缀字符串。它被设定为空,这可能导致一些问题 #753
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
我在mac使用makefile时,提示错误:make: *** [build] Error 1
正常情况下,-installsuffix 参数应该指定一个非空字符串,用于将生成的文件安装到带有后缀的目录中,以避免与其他版本的软件包冲突。在您的命令中,由于未提供后缀字符串,Go 将不会为生成的文件添加后缀,而是将其安装到默认目录。
如果希望使用 -installsuffix 参数,并且不需要添加后缀字符串,可以将其设定为一个空字符串(""),而不是省略它。可以使用以下命令:
这将使用空字符串作为后缀,并将生成的文件安装到默认目录中。
使用 -installsuffix 参数时,最好确保目标目录不存在其他版本的同名软件包,以避免潜在的文件冲突问题。
📝 Changelog
☑️ Self-Check before Merge