1
0
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:
CrazyMax
2023-05-28 20:23:24 +02:00
parent c740b990c2
commit 9f5511c8d5
5 changed files with 8 additions and 2 deletions
@@ -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 (