Closed
Description
Describe the problem
When I try to build arduino-cli with task build
, I receive the following error:
$ task build
task: [go:build] go build -v -ldflags ' -X github.com/arduino/arduino-cli/version.versionString=git-snapshot -X github.com/arduino/arduino-cli/version.commit=aa41d72e -X github.com/arduino/arduino-cli/version.date=2022-08-29T12:47:49Z '
github.com/arduino/arduino-cli/i18n
# github.com/arduino/arduino-cli/i18n
i18n/detect.go:24:9: undefined: getLocaleIdentifier
task: Failed to run task "go:build": exit status 2
To reproduce
git clone https://github.com/arduino/arduino-cli/
cd arduino-cli
task build
Expected behavior
I'd expect arduino-cli to compile without errors.
Arduino CLI version
Operating system
N/A
Operating system version
FreeBSD 13.1-RELEASE GENERIC amd64
Additional context
- FreeBSD 13.1-RELEASE GENERIC amd64
- Task version: v3.14.1 (h1:myTmEIbMbQx2D+g5lJvnbSqX531HmxiaQuefAqz8ISA=)
- go version go1.18.5 freebsd/amd64
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details