mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
osxkeychain: use go build constraint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build darwin && cgo
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "osxkeychain_darwin.h"
|
||||
#include "osxkeychain.h"
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <Foundation/NSValue.h>
|
||||
#include <stdio.h>
|
||||
@@ -1,10 +1,12 @@
|
||||
//go:build darwin && cgo
|
||||
|
||||
package osxkeychain
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -x objective-c
|
||||
#cgo LDFLAGS: -framework Security -framework Foundation
|
||||
|
||||
#include "osxkeychain_darwin.h"
|
||||
#include "osxkeychain.h"
|
||||
#include <stdlib.h>
|
||||
*/
|
||||
import "C"
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build darwin && cgo
|
||||
|
||||
package osxkeychain
|
||||
|
||||
import (
|
||||
Reference in New Issue
Block a user