mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 08:28:52 +00:00
Release notes: https://tip.golang.org/doc/go1.24 > Go modules can now track executable dependencies using tool directives in go.mod. This removes the need for the previous workaround of adding tools as blank imports to a file conventionally named “tools.go”. The go tool command can now run these tools in addition to tools shipped with the Go distribution. For more information see [the documentation](https://tip.golang.org/doc/modules/managing-dependencies#tools). The new -tool flag for go get causes a tool directive to be added to the current module for named packages in addition to adding require directives. I ran: ``` go get -tool github.com/fleetdm/fleet/v4/server/goose go get -tool github.com/kevinburke/go-bindata go get -tool github.com/quasilyte/go-ruleguard/dsl go rm tools.go go mod tidy ``` `make deps-go` was failing in CI because of the removal of `tools.go` (my guess is that `go get .` was a nop because there was nothing in `.` to download). So, taking the chance of removing `deps-go` because `go` will download packages during the build process. AFAICS there's no need to download everything beforehand.
37 lines
1 KiB
YAML
37 lines
1 KiB
YAML
name: Build fleetd_tables osquery extension
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-binaries:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
- name: Build binaries
|
|
run: make fleetd-tables-all
|
|
|
|
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
|
|
with:
|
|
name: fleetd_tables
|
|
path: fleetd_tables_*
|