Azure / azure-sdk-for-go

This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
https://docs.microsoft.com/azure/developer/go/
MIT License
1.62k stars 826 forks source link

azidentity/cache does not compile on darwin/amd64 #23568

Open mateuszlitwin opened 11 hours ago

mateuszlitwin commented 11 hours ago

Bug Report

    github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0
    github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0

% go version go version go1.23.0 darwin/arm64

Compiling azidentity/cache does not work on darwin/amd64.

GOOS=darwin GOARCH=amd64 go build ...
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache/darwin.go:18:19: undefined: accessor.New
vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache/darwin.go:18:38: undefined: accessor.WithAccount

Code to compile.

GOOS=darwin GOARCH=amd64 go build ...

github-actions[bot] commented 11 hours ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

chlowell commented 9 hours ago

Persistent caching on darwin requires cgo. Are you building with CGO_ENABLED=1 (go env|grep CGO_ENABLED)?

github-actions[bot] commented 9 hours ago

Hi @mateuszlitwin. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.