Fixed crosscompilation by adding build tags at the beginning of the files.

This commit is contained in:
Alexander Andreev 2023-12-09 19:25:29 +04:00
parent 1f8b0acd6a
commit 4ed0931ece
Signed by: Arav
GPG Key ID: D22A817D95815393
4 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,6 @@
//go:build unix
// +build unix
package util package util
func LocateJavaHome(component string, majorVersion int) (string, error) { func LocateJavaHome(component string, majorVersion int) (string, error) {

View File

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package util package util
import ( import (

View File

@ -1,3 +1,6 @@
//go:build unix
// +build unix
package util package util
import ( import (

View File

@ -1,3 +1,6 @@
//go:build windows
// +build windows
package util package util
import ( import (