Skip to content

Commit

Permalink
Merge pull request #37361 from luhring/batch-6-go-unstrip
Browse files Browse the repository at this point in the history
fix: stop stripping Go binaries (batch 6)
  • Loading branch information
luhring authored Dec 17, 2024
2 parents b7e21cf + 01dffd4 commit af1991f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
10 changes: 5 additions & 5 deletions mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ pipeline:
expected-commit: 13d696b867dc191d645ca4c127527e1265dd3d68
tag: v${{package.version}}

- runs: |
mkdir -p ${{targets.destdir}}/usr/bin/
go build -v -o ${{targets.destdir}}/usr/bin/mockery -ldflags="-s -w -X github.com/vektra/mockery/v2/pkg/logging.SemVer=v${{package.version}}"
- uses: strip
- uses: go/build
with:
packages: .
ldflags: -X github.com/vektra/mockery/v2/pkg/logging.SemVer=v${{package.version}}
output: mockery

update:
enabled: true
Expand Down
5 changes: 1 addition & 4 deletions mods.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: mods
version: 1.6.0
epoch: 0
epoch: 1
description: AI on the command line!
copyright:
- license: MIT
Expand All @@ -26,14 +26,11 @@ pipeline:
with:
packages: .
ldflags: |
-s -w
-X main.Version=${{package.version}}
-X main.CommitSHA=$(git rev-parse HEAD)
-X main.CommitDate=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
output: mods

- uses: strip

update:
enabled: true
github:
Expand Down
8 changes: 2 additions & 6 deletions newrelic-nri-kube-events.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package:
name: newrelic-nri-kube-events
version: 2.11.3
epoch: 0
epoch: 1
description: New Relic integration that forwards Kubernetes events to New Relic
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
- openssf-compiler-options
- wolfi-baselayout

Expand All @@ -27,11 +25,9 @@ pipeline:
- uses: go/build
with:
packages: ./cmd/nri-kube-events
ldflags: -s -w -X main.integrationVersion=v${{ package.version }}
ldflags: -X main.integrationVersion=v${{ package.version }}
output: nri-kube-events

- uses: strip

update:
enabled: true
github:
Expand Down

0 comments on commit af1991f

Please sign in to comment.