From 4a48392e1794d95f0dc6356deca0ada6ea713f48 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 4 May 2023 15:49:11 -0600 Subject: [PATCH 01/36] Propagate GOFLAGS from OS environment. --- internal/command/context.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/command/context.go b/internal/command/context.go index 43264de..accdd3b 100644 --- a/internal/command/context.go +++ b/internal/command/context.go @@ -4,6 +4,7 @@ import ( "bytes" "errors" "fmt" + "os" "path/filepath" "runtime" "strconv" @@ -173,6 +174,10 @@ func makeDefaultContext(flags *CommonFlags, args []string) (Context, error) { return ctx, err } + if os.Getenv("GOFLAGS") != "" { + ctx.Env["GOFLAGS"] = os.Getenv("GOFLAGS") + } + if len(flags.Ldflags) > 0 { goflags := "" for _, ldflags := range strings.Fields(flags.Ldflags) { From 6e1f6a1e8af9d532422e164a77091517fc11146d Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 4 May 2023 15:49:25 -0600 Subject: [PATCH 02/36] Correctly escape just the value when necessary --- internal/command/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index e3a8e5b..40a0a16 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -79,7 +79,7 @@ func AppendEnv(args []string, environs map[string]string, quoteNeeded bool) []st if quoteNeeded && strings.Contains(v, "=") { // engine requires to double quote the env var when value contains // the `=` char - env = fmt.Sprintf("%q", env) + env = fmt.Sprintf("%s=%q", k, v) } args = append(args, "-e", env) } From a4c8f0a86c647583ac0e20c801bfb5a03bc98338 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 6 May 2023 08:12:20 -0600 Subject: [PATCH 03/36] Update internal/command/context.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jacob Alzén --- internal/command/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/command/context.go b/internal/command/context.go index accdd3b..ae45a66 100644 --- a/internal/command/context.go +++ b/internal/command/context.go @@ -174,8 +174,8 @@ func makeDefaultContext(flags *CommonFlags, args []string) (Context, error) { return ctx, err } - if os.Getenv("GOFLAGS") != "" { - ctx.Env["GOFLAGS"] = os.Getenv("GOFLAGS") + if env := os.Getenv("GOFLAGS"); env != "" { + ctx.Env["GOFLAGS"] = env } if len(flags.Ldflags) > 0 { From d14c70cf1260a7aae3b90ed3d1fd1522479b9f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Alz=C3=A9n?= Date: Thu, 11 May 2023 22:55:20 +0200 Subject: [PATCH 04/36] Update docs with note about Windows amr64 support Windows arm64 has been available a while now but it seems like we missed adding it to the README.md file. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0b955d8..70510db 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Supported targets are: - linux/arm - linux/arm64 - windows/amd64 + - windows/arm64 - windows/386 - android ([multiple architectures](https://developer.android.com/ndk/guides/abis)) - android/386 From 5632220acadbe948c12ca0ba9f71d52b5b243885 Mon Sep 17 00:00:00 2001 From: Denis GERMAIN Date: Fri, 25 Aug 2023 13:51:30 +0200 Subject: [PATCH 05/36] Add more infos on darwin on linux compilation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 70510db..7dd0b2e 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,8 @@ The fyne-cross `darwin-sdk-extractor` command can be used to extract the SDK fro To extract the SDKs: 1. [Download Command Line Tools for Xcode](https://developer.apple.com/download/all/?q=Command%20Line%20Tools) >= 12.4 (macOS SDK 11.x) 2. Run: `fyne-cross darwin-sdk-extract --xcode-path /path/to/Command_Line_Tools_for_Xcode_12.5.dmg` + * Once extraction has been done, you should have a SDKs directory created. This directory contains at least 2 SDKs (ex. `SDKs/MacOSX12.3.sdk/` and `SDKs/MacOSX13.3.sdk/` in Command_Line_Tools_for_Xcode_14.3.1.dmg) +3. Specify explicitly which SDK you want to use in your fyne-cross command with --macosx-sdk-path: `fyne-cross darwin --macosx-sdk-path /full/path/to/SDKs/MacOSX12.3.sdk -app-id your.app.id` ## Contribute From afc530577482f11bb90e3baafc1edd4618a4fbb4 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 26 Sep 2023 18:23:42 -0600 Subject: [PATCH 06/36] Do not set :z on all darwin as we run inside a VM also on Intel host. --- internal/command/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index 19c6a78..89f4b83 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -104,7 +104,7 @@ func (i *localContainerImage) cmd(vol volume.Volume, opts options, cmdArgs []str } mountFormat := "%s:%s:z" - if runtime.GOOS == darwinOS && runtime.GOARCH == string(ArchArm64) { + if runtime.GOOS == darwinOS { // When running on darwin with a Arm64, we rely on going through a VM setup that doesn't allow the :z mountFormat = "%s:%s" } From 62990bd890789ba01c598464b4530d0774304ae3 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 26 Sep 2023 18:33:48 -0600 Subject: [PATCH 07/36] Update go version in CI. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbcac7c..3d689ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.18.x", "1.14.x"] + go-version: ["1.21.x", "1.16.x"] steps: - name: Setup Go environment From 4d0b9416dca59540b2f10f2b549acf984ca89b06 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 29 Sep 2023 17:12:38 -0600 Subject: [PATCH 08/36] Current minimum for Fyne is 1.17, so let'sfollow it here too. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d689ce..53bddfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.21.x", "1.16.x"] + go-version: ["1.21.x", "1.17.x"] steps: - name: Setup Go environment From cf3471551291619263f161230bf2dffc9f8fa7f0 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 29 Sep 2023 17:13:10 -0600 Subject: [PATCH 09/36] Update comment to indicate this affect both type of MacOS platform. --- internal/command/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index 89f4b83..41af274 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -105,7 +105,7 @@ func (i *localContainerImage) cmd(vol volume.Volume, opts options, cmdArgs []str mountFormat := "%s:%s:z" if runtime.GOOS == darwinOS { - // When running on darwin with a Arm64, we rely on going through a VM setup that doesn't allow the :z + // When running on darwin with an Arm64 or Amd64, we rely on going through a VM setup that doesn't allow the :z mountFormat = "%s:%s" } From 8489955341f5c1ac230697afa86034444432830d Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 29 Sep 2023 17:13:44 -0600 Subject: [PATCH 10/36] Disable ssh-agent forwarding with podman on MacOS. --- internal/command/docker.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index 41af274..00f3f3d 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -140,10 +140,13 @@ func (i *localContainerImage) cmd(vol volume.Volume, opts options, cmdArgs []str // detect ssh-agent socket for private repositories access if sshAuthSock := os.Getenv("SSH_AUTH_SOCK"); sshAuthSock != "" { if runtime.GOOS == "darwin" { - // on macOS, the SSH_AUTH_SOCK is not available in the container directly, - // but instead we need to the magic path "/run/host-services/ssh-auth.sock" - args = append(args, "-v", "/run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock") - args = append(args, "-e", "SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock") + // Podman doesn't yet support sshagent forwarding on macOS + if !i.runner.engine.IsPodman() { + // on macOS, the SSH_AUTH_SOCK is not available in the container directly, + // but instead we need to the magic path "/run/host-services/ssh-auth.sock" + args = append(args, "-v", "/run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock") + args = append(args, "-e", "SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock") + } } else if realSshAuthSock, err := filepath.EvalSymlinks(sshAuthSock); err == nil { args = append(args, "-v", fmt.Sprintf("%s:/tmp/ssh-agent", realSshAuthSock)) args = append(args, "-e", "SSH_AUTH_SOCK=/tmp/ssh-agent") From b4069b54feb55452391ce1e1bcc48c24b8241366 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 30 Sep 2023 18:14:00 -0600 Subject: [PATCH 11/36] Change go min/max version requirement everywhere. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53bddfa..4389bb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.18.x", "1.14.x"] + go-version: ["1.21.x", "1.17.x"] target: - os: linux - os: windows @@ -162,7 +162,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.18.x", "1.14.x"] + go-version: ["1.21.x", "1.17.x"] target: - os: linux - os: windows From ccf0cb34e85b37b07f79148d497b6ac34c83ac26 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sun, 19 Nov 2023 18:38:33 -0700 Subject: [PATCH 12/36] Turn on dependabot. --- .github/dependabot.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..66bb242 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + From 5e237822dbb9ab6aa0863b1a775df4b959dec8d7 Mon Sep 17 00:00:00 2001 From: oq <84847714+oq-x@users.noreply.github.com> Date: Tue, 19 Dec 2023 20:56:53 +0200 Subject: [PATCH 13/36] typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7dd0b2e..3883d59 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ Supported targets are: > Note: > - iOS compilation is supported only on darwin hosts. See [fyne pre-requisites](https://developer.fyne.io/started/#prerequisites) for details. -> - macOS packaging for public distrubution (release mode) is supported only on darwin hosts. -> - windows packaging for public distrubution (release mode) is supported only on windows hosts. +> - macOS packaging for public distribution (release mode) is supported only on darwin hosts. +> - windows packaging for public distribution (release mode) is supported only on windows hosts. > - starting from v1.1.0: > - cross-compile from NOT `darwin` (i.e. linux) to `darwin`: requires a copy of the macOS SDK on the host. The fyne-cross `darwin-sdk-extractor` command can be used to extract the SDK from the XCode CLI Tool file, see the [Extract the macOS SDK](#extract_macos_sdk) section below. > - cross-compile from `darwin` to `darwin` by default will use under the hood the fyne CLI tool and requires Go and the macOS SDK installed on the host. From 8adafbfb9c333b13b3ff2b5bd3c74838fef715bd Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 5 Jan 2024 21:25:43 -0700 Subject: [PATCH 14/36] Add unit test. --- internal/command/docker_test.go | 103 ++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/internal/command/docker_test.go b/internal/command/docker_test.go index abf8097..f81776a 100644 --- a/internal/command/docker_test.go +++ b/internal/command/docker_test.go @@ -268,6 +268,109 @@ func TestCmdEnginePodman(t *testing.T) { } } +func TestAppendEnv(t *testing.T) { + type args struct { + args []string + env map[string]string + quoteNeeded bool + } + tests := []struct { + name string + args args + wantStart []string + wantEnd [][2]string + }{ + { + name: "empty", + args: args{ + args: []string{}, + env: map[string]string{}, + quoteNeeded: true, + }, + wantStart: []string{}, + wantEnd: [][2]string{}, + }, + { + name: "quote needed", + args: args{ + args: []string{}, + env: map[string]string{"VAR": "value"}, + quoteNeeded: true, + }, + wantStart: []string{}, + wantEnd: [][2]string{{"-e", "VAR=value"}}, + }, + { + name: "quote not needed", + args: args{ + args: []string{}, + env: map[string]string{"VAR": "value"}, + quoteNeeded: false, + }, + wantStart: []string{}, + wantEnd: [][2]string{{"-e", "VAR=value"}}, + }, + { + name: "multiple", + args: args{ + args: []string{}, + env: map[string]string{"VAR": "value", "VAR2": "value2"}, + quoteNeeded: true, + }, + wantStart: []string{}, + wantEnd: [][2]string{{"-e", "VAR=value"}, {"-e", "VAR2=value2"}}, + }, + { + name: "multiple with args", + args: args{ + args: []string{"arg1", "arg2"}, + env: map[string]string{"VAR": "value", "VAR2": "value2"}, + quoteNeeded: true, + }, + wantStart: []string{"arg1", "arg2"}, + wantEnd: [][2]string{{"-e", "VAR=value"}, {"-e", "VAR2=value2"}}, + }, + { + name: "multiple with args and equal sign require quoting values", + args: args{ + args: []string{"arg1", "arg2"}, + env: map[string]string{"VAR": "value", "VAR2": "value2=2"}, + quoteNeeded: true, + }, + wantStart: []string{"arg1", "arg2"}, + wantEnd: [][2]string{{"-e", "VAR=value"}, {"-e", "VAR2=\"value2=2\""}}, + }, + { + name: "multiple with args and equal sign do not require quoting values", + args: args{ + args: []string{"arg1", "arg2"}, + env: map[string]string{"VAR": "value", "VAR2": "value2=2"}, + quoteNeeded: false, + }, + wantStart: []string{"arg1", "arg2"}, + wantEnd: [][2]string{{"-e", "VAR=value"}, {"-e", "VAR2=value2=2"}}, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := AppendEnv(tt.args.args, tt.args.env, tt.args.quoteNeeded) + for i, v := range tt.wantStart { + assert.Equal(t, v, got[i]) + } + for i := len(tt.wantStart); i < len(got); i += 2 { + found := false + for _, v := range tt.wantEnd { + if v[0] == got[i] && v[1] == got[i+1] { + found = true + break + } + } + assert.Equal(t, true, found) + } + }) + } +} + func TestMain(m *testing.M) { os.Unsetenv("SSH_AUTH_SOCK") os.Exit(m.Run()) From 80fe656dd9087ee46d905a1e0541eed4a718b96b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 5 Jan 2024 21:25:51 -0700 Subject: [PATCH 15/36] Try to make the comment less confusing. --- internal/command/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index 40a0a16..3193224 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -77,7 +77,7 @@ func AppendEnv(args []string, environs map[string]string, quoteNeeded bool) []st for k, v := range environs { env := k + "=" + v if quoteNeeded && strings.Contains(v, "=") { - // engine requires to double quote the env var when value contains + // engine requires to double quote the value when it contains // the `=` char env = fmt.Sprintf("%s=%q", k, v) } From 4eaf13ab44d79917d276ca10092c7ebff927958b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 10 Jan 2024 22:25:12 -0700 Subject: [PATCH 16/36] Make sure that we actually return all expected argument. --- internal/command/docker_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/command/docker_test.go b/internal/command/docker_test.go index 28a5ab8..cb36fa4 100644 --- a/internal/command/docker_test.go +++ b/internal/command/docker_test.go @@ -364,14 +364,16 @@ func TestAppendEnv(t *testing.T) { } for i := len(tt.wantStart); i < len(got); i += 2 { found := false - for _, v := range tt.wantEnd { + for k, v := range tt.wantEnd { if v[0] == got[i] && v[1] == got[i+1] { + tt.wantEnd = append(tt.wantEnd[:k], tt.wantEnd[k+1:]...) found = true break } } assert.Equal(t, true, found) } + assert.Equal(t, 0, len(tt.wantEnd)) }) } } From fb831a1171c53d62bb0892c31fe8d6c839ed59f0 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 27 Jan 2024 17:18:28 -0700 Subject: [PATCH 17/36] Use one uniq `i` for both loop. --- internal/command/docker_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/command/docker_test.go b/internal/command/docker_test.go index cb36fa4..895c471 100644 --- a/internal/command/docker_test.go +++ b/internal/command/docker_test.go @@ -359,10 +359,12 @@ func TestAppendEnv(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := AppendEnv(tt.args.args, tt.args.env, tt.args.quoteNeeded) - for i, v := range tt.wantStart { + var i int + for _, v := range tt.wantStart { assert.Equal(t, v, got[i]) + i++ } - for i := len(tt.wantStart); i < len(got); i += 2 { + for ; i < len(got); i += 2 { found := false for k, v := range tt.wantEnd { if v[0] == got[i] && v[1] == got[i+1] { From 64dffe1aaf42fab6cdb7f5c6212ac412f9d0d21e Mon Sep 17 00:00:00 2001 From: Luca Corbo Date: Tue, 30 Jan 2024 19:36:23 +0100 Subject: [PATCH 18/36] add myself to github sponsors --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index d2bcbb0..2df7b51 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -github: [fyne-io, Jacalz] +github: [fyne-io, Jacalz, lucor] From 5688febe857a521f2e4c8ab02b314989263d0ad6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:19:59 +0000 Subject: [PATCH 19/36] Bump github.com/BurntSushi/toml from 1.1.0 to 1.3.2 Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.1.0 to 1.3.2. - [Release notes](https://github.com/BurntSushi/toml/releases) - [Commits](https://github.com/BurntSushi/toml/compare/v1.1.0...v1.3.2) --- updated-dependencies: - dependency-name: github.com/BurntSushi/toml dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 6ab3b28..1cd921f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/fyne-io/fyne-cross go 1.17 require ( - github.com/BurntSushi/toml v1.1.0 + github.com/BurntSushi/toml v1.3.2 github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9 github.com/aws/aws-sdk-go v1.41.19 github.com/klauspost/compress v1.13.4 diff --git a/go.sum b/go.sum index 0e69838..028ee60 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,9 @@ github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxB github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= +github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9 h1:1ltqoej5GtaWF8jaiA49HwsZD459jqm9YFz9ZtMFpQA= github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I= github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= From b6c16101e9a7c4f4dfd41012160d15823afe7efd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:20:15 +0000 Subject: [PATCH 20/36] Bump golang.org/x/sync from 0.1.0 to 0.6.0 Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.6.0. - [Commits](https://github.com/golang/sync/compare/v0.1.0...v0.6.0) --- updated-dependencies: - dependency-name: golang.org/x/sync dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 6ab3b28..cdcca0e 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/mholt/archiver/v3 v3.5.1 github.com/stretchr/testify v1.7.0 github.com/urfave/cli/v2 v2.11.1 - golang.org/x/sync v0.1.0 + golang.org/x/sync v0.6.0 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f k8s.io/api v0.18.19 k8s.io/apimachinery v0.18.19 diff --git a/go.sum b/go.sum index 0e69838..9620970 100644 --- a/go.sum +++ b/go.sum @@ -282,8 +282,8 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= From e73852f66e021007548cc56fc3258b20071c1146 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:42:48 +0000 Subject: [PATCH 21/36] Bump github.com/aws/aws-sdk-go from 1.41.19 to 1.51.13 Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.41.19 to 1.51.13. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.41.19...v1.51.13) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 11 ++++++----- go.sum | 43 +++++++++++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 3236898..25a2a8c 100644 --- a/go.mod +++ b/go.mod @@ -5,13 +5,13 @@ go 1.17 require ( github.com/BurntSushi/toml v1.3.2 github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9 - github.com/aws/aws-sdk-go v1.41.19 + github.com/aws/aws-sdk-go v1.51.13 github.com/klauspost/compress v1.13.4 github.com/mholt/archiver/v3 v3.5.1 github.com/stretchr/testify v1.7.0 github.com/urfave/cli/v2 v2.11.1 golang.org/x/sync v0.6.0 - golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f + golang.org/x/sys v0.13.0 k8s.io/api v0.18.19 k8s.io/apimachinery v0.18.19 k8s.io/client-go v0.18.17 @@ -43,10 +43,11 @@ require ( github.com/ulikunitz/xz v0.5.10 // indirect github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect - golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect - golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect google.golang.org/appengine v1.5.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect diff --git a/go.sum b/go.sum index 268a45f..81875a1 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/aws/aws-sdk-go v1.41.19 h1:9QR2WTNj5bFdrNjRY9SeoG+3hwQmKXGX16851vdh+N8= -github.com/aws/aws-sdk-go v1.41.19/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= +github.com/aws/aws-sdk-go v1.51.13 h1:j6lgtz9E/XFRiYYnGNrAfWvyyTsuYvWvo2RCt0zqAIs= +github.com/aws/aws-sdk-go v1.51.13/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= @@ -188,7 +188,6 @@ github.com/pierrec/lz4/v4 v4.1.14 h1:+fL8AQEZtz/ijeNnpduH0bROTu0O3NZAlPjQxGn8LwE github.com/pierrec/lz4/v4 v4.1.14/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= @@ -238,6 +237,7 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRT github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -246,14 +246,18 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -270,8 +274,12 @@ golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= @@ -283,6 +291,8 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -300,18 +310,29 @@ golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -326,6 +347,8 @@ golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From 10b4f35d73ef84e8d6ba5c69c6b9af3944884c07 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 02:22:37 +0000 Subject: [PATCH 22/36] Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.9.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.9.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 25a2a8c..ba9a838 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go v1.51.13 github.com/klauspost/compress v1.13.4 github.com/mholt/archiver/v3 v3.5.1 - github.com/stretchr/testify v1.7.0 + github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.11.1 golang.org/x/sync v0.6.0 golang.org/x/sys v0.13.0 diff --git a/go.sum b/go.sum index 81875a1..85596af 100644 --- a/go.sum +++ b/go.sum @@ -217,11 +217,17 @@ github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DM github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.9/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= From 70b1bf8200aa4d0e6d033078d6b220a66cf5f302 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sun, 28 Apr 2024 19:35:38 -0600 Subject: [PATCH 23/36] Ldflags where only needed with older version of zig which we have updated since then. --- internal/command/darwin.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/command/darwin.go b/internal/command/darwin.go index dd03678..2f1ba60 100644 --- a/internal/command/darwin.go +++ b/internal/command/darwin.go @@ -187,8 +187,6 @@ func (cmd *darwin) setupContainerImages(flags *darwinFlags, args []string) error return fmt.Errorf("could not make command context for %s OS: %s", darwinOS, err) } - flags.Ldflags += " -s -w" - ctx, err := makeDefaultContext(flags.CommonFlags, args) if err != nil { return err @@ -200,7 +198,7 @@ func (cmd *darwin) setupContainerImages(flags *darwinFlags, args []string) error ctx.Category = flags.Category - // Following settings are needed to cross compile with zig 0.9.1 + // Following settings are needed to cross compile with zig ctx.BuildMode = "pie" cmd.defaultContext = ctx From fda64ff0032bb97abed1c73f94175e3a834a1a98 Mon Sep 17 00:00:00 2001 From: nobe4 Date: Mon, 6 May 2024 09:24:00 +0200 Subject: [PATCH 24/36] fix: update install suggestion for missing `fyne` command This makes the install process more inline with the CI workflow, where both are tested --- internal/command/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/command.go b/internal/command/command.go index 4559ed1..020407d 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -157,7 +157,7 @@ func printUsage(template string, data interface{}) { func checkFyneBinHost(ctx Context) (string, error) { fyne, err := execabs.LookPath("fyne") if err != nil { - return "", fmt.Errorf("missed requirement: fyne. To install: `go get fyne.io/fyne/v2/cmd/fyne` and add $GOPATH/bin to $PATH") + return "", fmt.Errorf("missed requirement: fyne. To install: `go install fyne.io/fyne/v2/cmd/fyne@latest` or `go get fyne.io/fyne/v2/cmd/fyne@latest` and add $GOPATH/bin to $PATH") } if debugging() { From 26515d991e7704276e3fc5c6152d5935e15715ac Mon Sep 17 00:00:00 2001 From: nobe4 Date: Tue, 7 May 2024 09:14:08 +0200 Subject: [PATCH 25/36] fix: remove `go get` when installing this command cc https://github.com/fyne-io/fyne-cross/pull/248#pullrequestreview-2041278225 --- .github/workflows/ci.yml | 8 ++------ internal/command/command.go | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4389bb3..cca249e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,11 +131,9 @@ jobs: working-directory: fyne-cross run: go install - # attempt to use "go install" but fallback to "go get" - name: Install Fyne run: | - go install fyne.io/fyne/v2/cmd/fyne@latest || - go get fyne.io/fyne/v2/cmd/fyne@latest + go install fyne.io/fyne/v2/cmd/fyne@latest - name: Install Podman if: ${{ runner.os == 'macos' }} @@ -213,11 +211,9 @@ jobs: working-directory: fyne-cross run: go install - # attempt to use "go install" but fallback to "go get" - name: Install Fyne run: | - go install fyne.io/fyne/v2/cmd/fyne@latest || - go get fyne.io/fyne/v2/cmd/fyne@latest + go install fyne.io/fyne/v2/cmd/fyne@latest - name: Install Podman if: ${{ runner.os == 'macos' }} diff --git a/internal/command/command.go b/internal/command/command.go index 020407d..3ce1490 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -157,7 +157,7 @@ func printUsage(template string, data interface{}) { func checkFyneBinHost(ctx Context) (string, error) { fyne, err := execabs.LookPath("fyne") if err != nil { - return "", fmt.Errorf("missed requirement: fyne. To install: `go install fyne.io/fyne/v2/cmd/fyne@latest` or `go get fyne.io/fyne/v2/cmd/fyne@latest` and add $GOPATH/bin to $PATH") + return "", fmt.Errorf("missed requirement: fyne. To install: `go install fyne.io/fyne/v2/cmd/fyne@latest` and add $GOPATH/bin to $PATH") } if debugging() { From c870d6b9790b24fd0bd65a1411622c54b1ce7fb8 Mon Sep 17 00:00:00 2001 From: Will Brode Date: Wed, 15 May 2024 16:18:08 -0700 Subject: [PATCH 26/36] fix: Large performance boost by avoiding running simple preparation in docker --- internal/command/command.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/command/command.go b/internal/command/command.go index 3ce1490..181d35c 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -97,20 +97,18 @@ Use "fyne-cross -help" for more information about a command. func cleanTargetDirs(ctx Context, image containerImage) error { dirs := map[string]string{ - "bin": volume.JoinPathContainer(ctx.BinDirContainer(), image.ID()), - "dist": volume.JoinPathContainer(ctx.DistDirContainer(), image.ID()), - "temp": volume.JoinPathContainer(ctx.TmpDirContainer(), image.ID()), + "bin": volume.JoinPathHost(ctx.Volume.BinDirHost(), image.ID()), + "dist": volume.JoinPathHost(ctx.Volume.DistDirHost(), image.ID()), + "temp": volume.JoinPathHost(ctx.Volume.TmpDirHost(), image.ID()), } log.Infof("[i] Cleaning target directories...") for k, v := range dirs { - err := image.Run(ctx.Volume, options{}, []string{"rm", "-rf", v}) - if err != nil { + if err := os.RemoveAll(v); err != nil { return fmt.Errorf("could not clean the %q dir %s: %v", k, v, err) } - err = image.Run(ctx.Volume, options{}, []string{"mkdir", "-p", v}) - if err != nil { + if err := os.MkdirAll(v, os.ModePerm); err != nil { return fmt.Errorf("could not create the %q dir %s: %v", k, v, err) } @@ -142,10 +140,12 @@ func prepareIcon(ctx Context, image containerImage) error { } } - err := image.Run(ctx.Volume, options{}, []string{"cp", volume.JoinPathContainer(ctx.WorkDirContainer(), ctx.Icon), volume.JoinPathContainer(ctx.TmpDirContainer(), image.ID(), icon.Default)}) - if err != nil { - return fmt.Errorf("could not copy the icon to temp folder: %v", err) + if data, err := os.ReadFile(volume.JoinPathHost(ctx.Volume.WorkDirHost(), ctx.Icon)); err != nil { + return fmt.Errorf("could not read in icon %s: %w", ctx.Icon, err) + } else if err := os.WriteFile(volume.JoinPathHost(ctx.TmpDirHost(), image.ID(), icon.Default), data, 0644); err != nil { + return fmt.Errorf("could not copy icon %s to tmp folder: %w", ctx.Icon, err) } + return nil } From 18ed90acda7c7d57f2b3b17acd258e14f4feb690 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 28 Aug 2024 22:43:13 +0100 Subject: [PATCH 27/36] Fixing so we don't seek a missing android image for darwin --- internal/command/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/docker.go b/internal/command/docker.go index 18d3ac6..8fb6865 100644 --- a/internal/command/docker.go +++ b/internal/command/docker.go @@ -114,7 +114,7 @@ func (i *localContainerImage) cmd(vol volume.Volume, opts options, cmdArgs []str } arch := "amd64" - if runtime.GOARCH == "arm64" { + if runtime.GOARCH == "arm64" && (runtime.GOOS != "darwin" || i.os != "android") { // If we are running on arm64, we should have arm64 image to avoid using emulation arch = runtime.GOARCH } From 5acc31aafd4b2a31a72d5ee5fead1cb8729395d6 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 28 Aug 2024 22:51:03 +0100 Subject: [PATCH 28/36] Updating to versions of Fyne --- .github/workflows/ci.yml | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cca249e..61f412b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] steps: - name: Setup Go environment @@ -56,7 +56,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.18.x"] + go-version: ["1.19.x"] steps: - name: Setup Go environment @@ -80,7 +80,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] target: - os: linux - os: windows @@ -160,7 +160,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] target: - os: linux - os: windows diff --git a/go.mod b/go.mod index ba9a838..5c133a3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/fyne-io/fyne-cross -go 1.17 +go 1.19 require ( github.com/BurntSushi/toml v1.3.2 From 437c03cd832161b20907744559eb655eae72901f Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 28 Aug 2024 22:56:12 +0100 Subject: [PATCH 29/36] Don't use a version that requires a newer Go compiler --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61f412b..557eac6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: go-version: "1.19.x" - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@latest + run: go install honnef.co/go/tools/cmd/staticcheck@1.4.7 - name: Install goimports run: go install golang.org/x/tools/cmd/goimports@latest From 9428532ed68a89cbc2bb90a3b694cfe88cdff515 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Thu, 29 Aug 2024 09:49:57 +0100 Subject: [PATCH 30/36] oops, typo in version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 557eac6..7c7fb97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: go-version: "1.19.x" - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@1.4.7 + run: go install honnef.co/go/tools/cmd/staticcheck@v0.4.7 - name: Install goimports run: go install golang.org/x/tools/cmd/goimports@latest From 1df19d4c092f33c3938b26cbdd391d0a285d9137 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Thu, 29 Aug 2024 10:10:51 +0100 Subject: [PATCH 31/36] Fix deprecations from Go 1.19 --- internal/cloud/s3.go | 7 +++---- internal/command/command.go | 3 +-- internal/command/darwin_sdk_extract.go | 3 +-- internal/metadata/load.go | 3 +-- internal/volume/volume.go | 5 ++--- 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/internal/cloud/s3.go b/internal/cloud/s3.go index a630df4..f53921f 100644 --- a/internal/cloud/s3.go +++ b/internal/cloud/s3.go @@ -6,7 +6,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "os" "path/filepath" "strings" @@ -20,7 +19,7 @@ import ( "github.com/klauspost/compress/zstd" "golang.org/x/sync/errgroup" - archiver "github.com/mholt/archiver/v3" + "github.com/mholt/archiver/v3" ) type AWSSession struct { @@ -104,7 +103,7 @@ func (a *AWSSession) UploadFile(localFile string, s3FilePath string) error { } func (a *AWSSession) UploadCompressedDirectory(localDirectoy string, s3FilePath string) error { - file, err := ioutil.TempFile("", "fyne-cross-s3") + file, err := os.CreateTemp("", "fyne-cross-s3") if err != nil { return err } @@ -255,7 +254,7 @@ func (a *AWSSession) DownloadFile(s3FilePath string, localFile string) error { } func (a *AWSSession) DownloadCompressedDirectory(s3FilePath string, localRootDirectory string) error { - file, err := ioutil.TempFile("", "fyne-cross-s3") + file, err := os.CreateTemp("", "fyne-cross-s3") if err != nil { return err } diff --git a/internal/command/command.go b/internal/command/command.go index 181d35c..8a62859 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -2,7 +2,6 @@ package command import ( "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -132,7 +131,7 @@ func prepareIcon(ctx Context, image containerImage) error { } log.Infof("[!] Default icon not found at %q", ctx.Icon) - err = ioutil.WriteFile(volume.JoinPathHost(ctx.WorkDirHost(), ctx.Icon), icon.FyneLogo, 0644) + err = os.WriteFile(volume.JoinPathHost(ctx.WorkDirHost(), ctx.Icon), icon.FyneLogo, 0644) if err != nil { return fmt.Errorf("could not create the temporary icon: %s", err) } diff --git a/internal/command/darwin_sdk_extract.go b/internal/command/darwin_sdk_extract.go index cf14546..70ded4c 100644 --- a/internal/command/darwin_sdk_extract.go +++ b/internal/command/darwin_sdk_extract.go @@ -3,7 +3,6 @@ package command import ( "errors" "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -78,7 +77,7 @@ func (cmd *DarwinSDKExtract) Run() error { } // mount the fyne-cross volume - workDir, err := ioutil.TempDir("", cmd.Name()) + workDir, err := os.MkdirTemp("", cmd.Name()) if err != nil { return err } diff --git a/internal/metadata/load.go b/internal/metadata/load.go index 25d214a..e05a94d 100644 --- a/internal/metadata/load.go +++ b/internal/metadata/load.go @@ -2,7 +2,6 @@ package metadata import ( "io" - "io/ioutil" "os" "path/filepath" @@ -12,7 +11,7 @@ import ( // Load attempts to read a FyneApp metadata from the provided reader. // If this cannot be done an error will be returned. func Load(r io.Reader) (*FyneApp, error) { - str, err := ioutil.ReadAll(r) + str, err := io.ReadAll(r) if err != nil { return nil, err } diff --git a/internal/volume/volume.go b/internal/volume/volume.go index 617ff41..c2461a8 100644 --- a/internal/volume/volume.go +++ b/internal/volume/volume.go @@ -7,7 +7,6 @@ import ( "archive/zip" "fmt" "io" - "io/ioutil" "os" "path" "path/filepath" @@ -31,11 +30,11 @@ const ( // Copy copies a resource from src to dest func Copy(src string, dst string) error { - data, err := ioutil.ReadFile(src) + data, err := os.ReadFile(src) if err != nil { return err } - return ioutil.WriteFile(dst, data, 0644) + return os.WriteFile(dst, data, 0644) } // DefaultCacheDirHost returns the default cache dir on the host From 8cc7adb896ba3cc6202c16a0959ecc6ca5218a99 Mon Sep 17 00:00:00 2001 From: lucor Date: Sat, 28 Dec 2024 10:36:58 +0100 Subject: [PATCH 32/36] readme: only MacOS SDK 11.3 is supported --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3883d59..17b096b 100644 --- a/README.md +++ b/README.md @@ -139,11 +139,13 @@ The fyne-cross `darwin-sdk-extractor` command can be used to extract the SDK fro terms before continuing.](https://www.apple.com/legal/sla/docs/xcode.pdf)** To extract the SDKs: -1. [Download Command Line Tools for Xcode](https://developer.apple.com/download/all/?q=Command%20Line%20Tools) >= 12.4 (macOS SDK 11.x) +1. [Download Command Line Tools for Xcode](https://developer.apple.com/download/all/?q=Command%20Line%20Tools) 12.4 (macOS SDK 11.x) 2. Run: `fyne-cross darwin-sdk-extract --xcode-path /path/to/Command_Line_Tools_for_Xcode_12.5.dmg` * Once extraction has been done, you should have a SDKs directory created. This directory contains at least 2 SDKs (ex. `SDKs/MacOSX12.3.sdk/` and `SDKs/MacOSX13.3.sdk/` in Command_Line_Tools_for_Xcode_14.3.1.dmg) 3. Specify explicitly which SDK you want to use in your fyne-cross command with --macosx-sdk-path: `fyne-cross darwin --macosx-sdk-path /full/path/to/SDKs/MacOSX12.3.sdk -app-id your.app.id` +> Note: current version supports only MacOS SDK 11.3 + ## Contribute - Fork and clone the repository From 82d281e339d8655fcf36525e8d04769bf154c2a7 Mon Sep 17 00:00:00 2001 From: lucor Date: Sat, 28 Dec 2024 10:37:14 +0100 Subject: [PATCH 33/36] changelog: add 1.6.0 release note --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf6bea6..8b0efe7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog - Fyne.io fyne-cross +## 1.6.0 - 28 Dec 2024 + +### Changed +- Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 by @dependabot in https://github.com/fyne-io/fyne-cross/pull/233 +- Ldflags where only needed with older version of zig which we have updated since then. by @Bluebugs in https://github.com/fyne-io/fyne-cross/pull/246 + +## 1.5.0 - 13 Apr 2024 + +### Changed + +- Improve Docker Darwin support when using it has a host for fyne-cross (ssh-agent detection, documentation, arm64) +- Support Podman on Darwin +- Improve Android signature support +- Propagate GOFLAGS correctly +- Adjust supported Go version to match Fyne +- Update dependencies + ## 1.4.0 - 13 Mar 2023 ### Added From 7d99f52b11f81840c29cabbb5c97dce9632f8de4 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 31 Dec 2024 10:39:11 +0000 Subject: [PATCH 34/36] Update to match Fyne Go versions and use new tooling --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4389bb3..4dd529d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v3 with: - go-version: "1.19.x" + go-version: "1.23.x" - name: Install staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest @@ -34,7 +34,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] steps: - name: Setup Go environment @@ -56,7 +56,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] # use max/min supported Go versions - go-version: ["1.18.x"] + go-version: ["1.19.x"] steps: - name: Setup Go environment @@ -80,7 +80,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] target: - os: linux - os: windows @@ -162,7 +162,7 @@ jobs: fail-fast: false matrix: # use max/min supported Go versions - go-version: ["1.21.x", "1.17.x"] + go-version: ["1.23.x", "1.19.x"] target: - os: linux - os: windows From 0cee16c1230ffa88069c9e29153f3f375054e6bf Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 31 Dec 2024 10:47:25 +0000 Subject: [PATCH 35/36] Update cache usage to remove deprecation warnings --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dd529d..4313b09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,7 +119,7 @@ jobs: path: calculator - name: Cache build artifacts - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -201,7 +201,7 @@ jobs: path: terminal - name: Cache build artifacts - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod From 49279d4afa9f5a0fcd3273e3fdc96a1e4fb91427 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 31 Dec 2024 10:56:06 +0000 Subject: [PATCH 36/36] Correct date for release merged --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b0efe7..b657a89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog - Fyne.io fyne-cross -## 1.6.0 - 28 Dec 2024 +## 1.6.0 - 31 Dec 2024 ### Changed - Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 by @dependabot in https://github.com/fyne-io/fyne-cross/pull/233