From ee30842d105cfea80e1c932e0e1a1faec95105c4 Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Thu, 9 Jul 2020 00:47:31 +0100 Subject: [PATCH 1/7] Add missing vendorSha256 parameter --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index 1be59d7..4b6de4a 100644 --- a/default.nix +++ b/default.nix @@ -8,6 +8,7 @@ buildGoModule rec { src = ./.; modSha256 = null; + vendorSha256 = null; buildPhase = '' runHook preBuild From 4c1a40fe96b8c4811556fb22320a5a45e7ce6170 Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 15:48:48 +0100 Subject: [PATCH 2/7] Add a trigger for rebuilds with a comment --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7915c0a..885d35d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,8 +2,11 @@ name: Test on: pull_request: push: + issue_comment: + types: [created, edited] jobs: test: + if: "pull_request|push".contains(github.event_name) || github.event.comment.body == 'rebuild' strategy: matrix: platform: [ubuntu-latest, macos-latest] From 87175838ca68065881fef426086ca29917fbf358 Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 15:52:12 +0100 Subject: [PATCH 3/7] Fix quotes style --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 885d35d..65cae51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: types: [created, edited] jobs: test: - if: "pull_request|push".contains(github.event_name) || github.event.comment.body == 'rebuild' + if: 'pull_request|push'.contains(github.event_name) || github.event.comment.body == 'rebuild' strategy: matrix: platform: [ubuntu-latest, macos-latest] From 8d2a83cd67a1a8caf1cafb75cb4b29b2be356176 Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 16:02:43 +0100 Subject: [PATCH 4/7] Try quoting the expression --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65cae51..e32b73a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: types: [created, edited] jobs: test: - if: 'pull_request|push'.contains(github.event_name) || github.event.comment.body == 'rebuild' + if: '"pull_request|push".contains(github.event_name) || github.event.comment.body == "rebuild"' strategy: matrix: platform: [ubuntu-latest, macos-latest] From 7bc9f0f191200ca0fb2bd022641759a6d6f26351 Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 16:07:13 +0100 Subject: [PATCH 5/7] Try quoting the expression the other way --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e32b73a..d9e67e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: types: [created, edited] jobs: test: - if: '"pull_request|push".contains(github.event_name) || github.event.comment.body == "rebuild"' + if: "'pull_request|push'.contains(github.event_name) || github.event.comment.body == 'rebuild'" strategy: matrix: platform: [ubuntu-latest, macos-latest] From e96c2b6a0089dd03fe3a8c4e928d1466b7fa78be Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 16:09:47 +0100 Subject: [PATCH 6/7] Actually use the contains function properly --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9e67e4..47107c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: types: [created, edited] jobs: test: - if: "'pull_request|push'.contains(github.event_name) || github.event.comment.body == 'rebuild'" + if: contains(['pull_request, 'push'], github.event_name) || github.event.comment.body == 'rebuild' strategy: matrix: platform: [ubuntu-latest, macos-latest] From b838dd8c6de83147df9e2d02408d8ca47bbf3a5c Mon Sep 17 00:00:00 2001 From: Adrian Wilkins Date: Mon, 3 Aug 2020 16:10:59 +0100 Subject: [PATCH 7/7] Stop trying to be a smartarse about arrays --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47107c2..3f49da2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: types: [created, edited] jobs: test: - if: contains(['pull_request, 'push'], github.event_name) || github.event.comment.body == 'rebuild' + if: contains('pull_request|push', github.event_name) || github.event.comment.body == 'rebuild' strategy: matrix: platform: [ubuntu-latest, macos-latest]