From 2a94a91607978a7dcceecfdb9c82419c74ba33fd Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Sat, 17 May 2025 23:28:07 +0200 Subject: [PATCH 1/4] chore: Enhance PublishExample function to include error handling and publish with latest tag. Updated command to publish example bundle with an additional step for tagging. Signed-off-by: Kim Christensen --- magefile.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index 68f6876..47afc1d 100644 --- a/magefile.go +++ b/magefile.go @@ -116,7 +116,11 @@ func PublishExample(name string) error { } fmt.Printf("Publishing example bundle: %s\n", name) - return shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV() + err = shx.Command("porter", "publish", registryFlag).CollapseArgs().In(name).RunV() + mgx.Must(err) + + // Publish with latest tag + return shx.Command("porter", "publish", "--tag", "latest").CollapseArgs().In(name).RunV() } // SetupDCO configures your git repository to automatically sign your commits From c4b0116c6308cc77416105ac1dc83ffab3563a9c Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Tue, 22 Jul 2025 22:32:22 +0200 Subject: [PATCH 2/4] chore: Update EnsurePorter function to specify version v1.2.1 for improved consistency in mixin installations. Signed-off-by: Kim Christensen --- mage/setup/mixins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mage/setup/mixins.go b/mage/setup/mixins.go index 3c3b0cc..76b2d13 100644 --- a/mage/setup/mixins.go +++ b/mage/setup/mixins.go @@ -32,5 +32,5 @@ func InstallMixins() error { } func EnsurePorter() { - porter.EnsurePorter() + porter.EnsurePorterAt("v1.2.1") } From a237982d215726d67f98e2682185b3ff11dba462 Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Tue, 22 Jul 2025 22:50:12 +0200 Subject: [PATCH 3/4] feat: Implement retry logic in InstallMixins for EnsureMixin calls to improve reliability of mixin installations. Signed-off-by: Kim Christensen --- mage/setup/mixins.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mage/setup/mixins.go b/mage/setup/mixins.go index 76b2d13..b94db62 100644 --- a/mage/setup/mixins.go +++ b/mage/setup/mixins.go @@ -25,6 +25,11 @@ func InstallMixins() error { for _, mixin := range mixins { mixin := mixin errG.Go(func() error { + for i := 0; i < 3; i++ { + if err := porter.EnsureMixin(mixin); err == nil { + return nil + } + } return porter.EnsureMixin(mixin) }) } From b6f61ba73cb01ccd9bb414db2686929c53740679 Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Sun, 14 Sep 2025 23:19:46 +0200 Subject: [PATCH 4/4] Revert "chore: Update EnsurePorter function to specify version v1.2.1 for improved consistency in mixin installations." This reverts commit 8057a44adef0ed811b2bb88f028b197ee9302588. Signed-off-by: Kim Christensen --- mage/setup/mixins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mage/setup/mixins.go b/mage/setup/mixins.go index b94db62..44433ef 100644 --- a/mage/setup/mixins.go +++ b/mage/setup/mixins.go @@ -37,5 +37,5 @@ func InstallMixins() error { } func EnsurePorter() { - porter.EnsurePorterAt("v1.2.1") + porter.EnsurePorter() }