summaryrefslogtreecommitdiff
path: root/gnu/packages/engineering.scm
diff options
context:
space:
mode:
authorOrahcio FelĂ­cio de Sousa <orahcio@gmail.com>2026-07-04 19:36:22 -0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-07-08 22:37:55 +0100
commit4fb545a30cb3b1c5f546fef2b259ab6470d413de (patch)
treeec6087579a258ad1b0fed1fa5c5d1da976b44cb6 /gnu/packages/engineering.scm
parentfacb3f4cb5c260d36316dcf80045dc4fe706884b (diff)
gnu: arduino-cli: Disable online update check.
This is a follow up fix found in guix/guix!9583. * gnu/packages/engineering.scm (arduino-cli): [arguments]{disable-new-release-check}: New phase, disabling the automatic online update check in the version command. Merges: guix/guix!9726 Reviewed-by: bdunahu <bdunahu@operationnull.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/engineering.scm')
-rw-r--r--gnu/packages/engineering.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 6429d161b0f..4e77206b4c3 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1898,6 +1898,20 @@ language, ADMS transforms Verilog-AMS code into other target languages.")
1898 "pkg/fqbn") 1898 "pkg/fqbn")
1899 #:phases 1899 #:phases
1900 #~(modify-phases %standard-phases 1900 #~(modify-phases %standard-phases
1901 ;; Disable network release check for 'arduino-cli version'
1902 ;; command, by removing the 'res'ponse variable and setting
1903 ;; 'latestVersion' to empty string to simulate a no check
1904 ;; behavior.
1905 (add-after 'unpack 'disable-new-release-check
1906 (lambda* (#:key import-path #:allow-other-keys)
1907 (substitute*
1908 (string-append
1909 "src/" import-path "/internal/cli/version/version.go")
1910 (("res, (err ):= .*$" all first)
1911 (string-append "var " first "error\n"))
1912 (("(latestVersion = )res\\.GetNewestVersion\\(\\)"
1913 all first)
1914 (string-append first "\"\"")))))
1901 (add-after 'install 'install-shell-completions 1915 (add-after 'install 'install-shell-completions
1902 (lambda* (#:key native-inputs #:allow-other-keys) 1916 (lambda* (#:key native-inputs #:allow-other-keys)
1903 (for-each 1917 (for-each