Package Details: arduino-cli-git r690.2f07f94-1

Git Clone URL: https://aur.archlinux.org/arduino-cli-git.git (read-only, click to copy)
Package Base: arduino-cli-git
Description: Arduino command line interface
Upstream URL: https://github.com/arduino/arduino-cli
Keywords: arduino arduino-cli cli
Licenses: GPL3
Groups: arduino
Submitter: petervaro
Maintainer: petervaro
Last Packager: petervaro
Votes: 1
Popularity: 0.000000
First Submitted: 2018-08-26 09:23 (UTC)
Last Updated: 2022-03-17 08:25 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

lexi commented on 2024-09-20 07:04 (UTC)

this is the error i get when running the build script manually (after silently failing with yay)

go: github.com/arduino/arduino-cli@latest (in github.com/arduino/arduino-cli@v1.0.4):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

agorg_louk commented on 2021-12-26 18:35 (UTC)

Please change the deprecated build command with this:

-    GOPATH="$gopath" go get -u github.com/arduino/arduino-cli
+    GOPATH="$gopath" GO111MODULE=on go install github.com/arduino/arduino-cli@latest

This also respects the go.mod dependency versions resulting in a working binary, and avoiding the following error:

panic: NewPo() was not used to instantiate this object

goroutine 1 [running]:
github.com/leonelquinteros/gotext.(*Po).Parse(0x2, {0xc0004a6000, 0x6, 0xec085d})
    /home/user/.go/pkg/mod/github.com/leonelquinteros/gotext@v1.5.0/po.go:132 +0x609
github.com/arduino/arduino-cli/i18n.setLocale({0xec085d, 0xa877db})
    /home/user/.go/pkg/mod/github.com/arduino/arduino-cli@v0.0.0-20211223154305-12adc5389c75/i18n/locale.go:79 +0xac
github.com/arduino/arduino-cli/i18n.Init({0xc00036ff60, 0x1, 0x0})
    /home/user/.go/pkg/mod/github.com/arduino/arduino-cli@v0.0.0-20211223154305-12adc5389c75/i18n/i18n.go:37 +0xca
main.main()
    /home/user/.go/pkg/mod/github.com/arduino/arduino-cli@v0.0.0-20211223154305-12adc5389c75/main.go:29 +0x8a

caused by building the binary with the non compatible gotext 1.5 version instead of the go.mod 1.4 specified one.

petervaro commented on 2018-08-26 21:21 (UTC) (edited on 2018-08-26 21:22 (UTC) by petervaro)

@sekret I didn't include 'git' because 'go' already has it as a dependency, and since the binary is compiled by go (this is a git package after all) according to the authors it is running on virtually any platform Arch is running on, hence my choice for 'any'. Nonetheless, I updated as you requested, cheers for the feedback.

sekret commented on 2018-08-26 20:17 (UTC)

Please add git to makedepends.

And please change the arch to x86_64 and i686, since this package contains binary files, not only scripts.

Lastly, the license you provided is correct, but we call it GPL3 (without the v).