Fix broken gitops-auto-complete build. (#50081)
The gitops-auto-complete uses `replace github.com/fleetdm/fleet/v4 => ../..` which means it is frequently broken whenever fleet updates shared libraries. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added automated build and dependency verification for the GitOps auto-complete tool. * Updated workflow triggers so changes to the tool are checked automatically. * Refreshed supporting service dependencies used by the tool. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -7,7 +7,8 @@ on:
|
||||
paths:
|
||||
- 'tools/dibble/**'
|
||||
- 'tools/upgrade/**'
|
||||
# dibble and upgrade pin the parent module via `replace github.com/fleetdm/fleet/v4 => ../..`, so a
|
||||
- 'tools/gitops-auto-complete/**'
|
||||
# These tools pin the parent module via `replace github.com/fleetdm/fleet/v4 => ../..`, so a
|
||||
# change to the root module's dependency graph can leave their go.mod and go.sum out of sync. Trigger on
|
||||
# the root go.mod/go.sum too, so the same change that bumps a root dependency is forced to re-tidy them.
|
||||
- 'go.mod'
|
||||
@@ -17,6 +18,7 @@ on:
|
||||
paths:
|
||||
- 'tools/dibble/**'
|
||||
- 'tools/upgrade/**'
|
||||
- 'tools/gitops-auto-complete/**'
|
||||
- 'go.mod'
|
||||
- 'go.sum'
|
||||
- '.github/workflows/test-tools.yml'
|
||||
@@ -52,6 +54,9 @@ jobs:
|
||||
- tool: upgrade
|
||||
dir: tools/upgrade
|
||||
run_tests: false
|
||||
- tool: gitops-auto-complete
|
||||
dir: tools/gitops-auto-complete
|
||||
run_tests: false
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
|
||||
|
||||
Reference in New Issue
Block a user