diff --git a/internal/crypt/crypt_impl.go b/internal/crypt/crypt_impl.go index 088cf4462..89d0462d9 100644 --- a/internal/crypt/crypt_impl.go +++ b/internal/crypt/crypt_impl.go @@ -1,3 +1,5 @@ +// +build !macos + // Copied from https://github.com/amoghe/go-crypt/blob/b3e291286513a0c993f7c4dd7060d327d2d56143/crypt_r.go // Original sources are under MIT license: // The MIT License (MIT) diff --git a/internal/crypt/crypt_impl_macos.go b/internal/crypt/crypt_impl_macos.go new file mode 100644 index 000000000..82b7802dd --- /dev/null +++ b/internal/crypt/crypt_impl_macos.go @@ -0,0 +1,8 @@ +// +build macos + +package crypt + +func crypt(pass, salt string) (string, error) { + panic("You must not run osbuild-composer on macOS!") + return "", nil +}