[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41053: Use Go 1.20 on Windows, except for Snowflake

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Wed Dec 20 13:25:57 UTC 2023



Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
22731a74 by Pier Angelo Vendrame at 2023-12-20T10:14:18+01:00
Bug 41053: Use Go 1.20 on Windows, except for Snowflake

Go 1.21 removed support for Windows 7 and 8.
However, Firefox still supports them, so some users try Tor Browser but
cannot use PTs.
We cannot replicate the problem on our Windows 7 systems, but using Go
1.20.x for Windows should solve the problem for them.
Snowflake is still on 1.21 because it is needed for some Pion changes.

- - - - -


1 changed file:

- projects/go/config


Changes:

=====================================
projects/go/config
=====================================
@@ -1,10 +1,11 @@
 # vim: filetype=yaml sw=2
-version: 1.21.5
+version: '[% IF c("var/use_go_1_20") %]1.20.12[% ELSE %]1.21.5[% END %]'
 filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]'
 container:
   use_container: 1
 
 var:
+  use_go_1_20: 0
   setup: |
     mkdir -p /var/tmp/dist
     tar -C /var/tmp/dist -xf $rootdir/[% c("go_tarfile") %]
@@ -72,6 +73,7 @@ targets:
   windows:
     var:
       GOOS: windows
+      use_go_1_20: '[% c("origin_project") != "snowflake" %]'
   windows-i686:
     var:
       GOARCH: 386
@@ -117,9 +119,14 @@ input_files:
   - name: '[% c("var/compiler") %]'
     project: '[% c("var/compiler") %]'
     enable: '[% ! c("var/linux") %]'
-  - URL: 'https://golang.org/dl/go[% c("version") %].src.tar.gz'
+  - URL: 'https://go.dev/dl/go[% c("version") %].src.tar.gz'
     name: go
     sha256sum: 285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19
+    enable: '[% !c("var/use_go_1_20") %]'
+  - URL: 'https://go.dev/dl/go[% c("version") %].src.tar.gz'
+    name: go
+    sha256sum: c5bf934751d31c315c1d0bb5fb02296545fa6d08923566f7a5afec81f2ed27d6
+    enable: '[% c("var/use_go_1_20") %]'
   - project: go-bootstrap
     name: go-bootstrap
     target_replace:



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/22731a740529dc055ba2f59f1c5be38bad4e602d

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/22731a740529dc055ba2f59f1c5be38bad4e602d
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20231220/b5a31dfd/attachment-0001.htm>


More information about the tbb-commits mailing list