Skip to content

Commit

Permalink
remove redundant ldflags
Browse files Browse the repository at this point in the history
Signed-off-by: hectorj2f <[email protected]>
  • Loading branch information
hectorj2f committed May 15, 2024
1 parent f4e3583 commit 40a17ce
Show file tree
Hide file tree
Showing 34 changed files with 65 additions and 76 deletions.
4 changes: 2 additions & 2 deletions amass.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: amass
version: 4.2.0
epoch: 9
epoch: 10
description: "attack surfaces and external asset discovery tools set"
copyright:
- license: Apache-2.0
Expand All @@ -28,7 +28,7 @@ pipeline:
packages: ./cmd/amass
modroot: .
output: amass
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions atlantis.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: atlantis
version: 0.27.3
epoch: 1
epoch: 2
description: Terraform Pull Request Automation
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -31,7 +31,7 @@ pipeline:
modroot: .
packages: .
output: atlantis
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: buf
version: 1.31.0
epoch: 3
epoch: 4
description: A new way of working with Protocol Buffers.
copyright:
- license: Apache-2.0
Expand All @@ -24,7 +24,7 @@ pipeline:
packages: ./cmd/buf
modroot: .
output: buf
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions cloud-sql-proxy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: cloud-sql-proxy
version: 2.11.0
epoch: 2
epoch: 3
description: The Cloud SQL Auth Proxy is a utility for ensuring secure connections to your Cloud SQL instances
copyright:
- license: Apache-2.0
Expand All @@ -27,7 +27,7 @@ pipeline:
with:
packages: .
output: cloud-sql-proxy
ldflags: -w -X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container
ldflags: -X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions conftest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: conftest
version: 0.52.0
epoch: 1
epoch: 2
description: Write tests against structured configuration data using the Open Policy Agent Rego query language
copyright:
- license: Apache-2.0
Expand All @@ -18,7 +18,7 @@ pipeline:

- uses: go/build
with:
ldflags: -w -s -X github.com/open-policy-agent/conftest/internal/commands.version=${{package.version}}
ldflags: -X github.com/open-policy-agent/conftest/internal/commands.version=${{package.version}}
modroot: .
output: conftest
packages: .
Expand Down
4 changes: 2 additions & 2 deletions controller-gen.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: controller-gen
version: 0.15.0
epoch: 3
epoch: 4
description: Tools to use with the controller-runtime libraries
copyright:
- license: Apache-2.0
Expand All @@ -27,7 +27,7 @@ pipeline:
packages: ./cmd/controller-gen
modroot: .
output: controller-gen
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 1 addition & 3 deletions crossplane.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: crossplane
version: 1.15.2
epoch: 1
epoch: 2
description: Cloud Native Control Planes
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -30,7 +30,6 @@ pipeline:

- uses: go/build
with:
ldflags: -w
output: crossplane
packages: ./cmd/crossplane

Expand All @@ -44,7 +43,6 @@ subpackages:
deps: github.com/go-git/go-git/[email protected]
- uses: go/build
with:
ldflags: -w
output: crank
packages: ./cmd/crank
subpackage: "true"
Expand Down
4 changes: 2 additions & 2 deletions cue.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: cue
version: 0.8.2
epoch: 1
epoch: 2
description: The home of the CUE language! Validate and define text-based and dynamic configuration
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -34,7 +34,7 @@ pipeline:
modroot: .
packages: ./cmd/cue
output: cue
ldflags: -w -buildid= -X cuelang.org/go/cmd/cue/cmd.version=${{package.version}}
ldflags: -buildid= -X cuelang.org/go/cmd/cue/cmd.version=${{package.version}}

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions dive.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: dive
version: 0.12.0
epoch: 5
epoch: 6
description: A tool for exploring each layer in a docker image
copyright:
- license: MIT
Expand Down Expand Up @@ -30,7 +30,7 @@ pipeline:
with:
packages: .
output: dive
ldflags: -w -X main.version=v${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.buildTime=$(date +%F-%T)
ldflags: -X main.version=v${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.buildTime=$(date +%F-%T)

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions fq.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: fq
version: 0.11.0
epoch: 3
epoch: 4
description: "jq for binary formats - tool, language and decoders for working with binary and text formats"
copyright:
- license: MIT
Expand All @@ -18,7 +18,7 @@ pipeline:
packages: ./
modroot: .
output: fq
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions gcsfuse.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gcsfuse
version: 1.4.2
epoch: 6
epoch: 7
description: A user-space file system for interacting with Google Cloud Storage
copyright:
- license: Apache-2.0
Expand All @@ -26,7 +26,7 @@ pipeline:
packages: .
modroot: .
output: gcsfuse
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

update:
enabled: true
Expand Down
3 changes: 1 addition & 2 deletions gitlab-logger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gitlab-logger
version: 3.0.0
epoch: 7
epoch: 8
description: GitLab Logger provides a means of wrapping non-structured log files within structure JSON.
copyright:
- license: MIT
Expand All @@ -21,7 +21,6 @@ pipeline:
with:
packages: ./cmd/gitlab-logger
output: gitlab-logger
ldflags: -w

- uses: strip

Expand Down
3 changes: 1 addition & 2 deletions go-bindata.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: go-bindata
version: 3.1.3
epoch: 19
epoch: 20
description: A small utility which generates Go code from any file
copyright:
- license: Apache-2.0
Expand All @@ -24,7 +24,6 @@ pipeline:
with:
packages: ./go-bindata
output: go-bindata
ldflags: -w

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions gobuster.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gobuster
version: 3.6.0
epoch: 10
epoch: 11
description: "a tool used to brute force attack for URIs, DNS, etc."
copyright:
- license: Apache-2.0
Expand All @@ -28,7 +28,7 @@ pipeline:
packages: .
modroot: .
output: gobuster
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

- uses: strip

Expand Down
4 changes: 2 additions & 2 deletions goreleaser-1.18.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: goreleaser-1.18
version: 1.18.2
epoch: 10
epoch: 11
description: Deliver Go binaries as fast and easily as possible
copyright:
- license: Apache-2.0
Expand All @@ -26,7 +26,7 @@ pipeline:
packages: .
modroot: .
output: goreleaser
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

update:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: goreleaser
version: 1.26.0
epoch: 2
epoch: 3
description: Deliver Go binaries as fast and easily as possible
copyright:
- license: Apache-2.0
Expand All @@ -23,7 +23,7 @@ pipeline:
packages: .
modroot: .
output: goreleaser
ldflags: -w -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

update:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions gostatsd.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gostatsd
version: 28.3.0
epoch: 2
epoch: 3
description: An implementation of Etsy's statsd in Go with tags support
copyright:
- license: MIT
Expand All @@ -25,7 +25,7 @@ pipeline:
with:
output: gostatsd
packages: ./cmd/gostatsd
ldflags: -w -X main.Version=${{package.version}} -X main.GitCommit=$(git rev-parse HEAD) -X main.BuildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
ldflags: -X main.Version=${{package.version}} -X main.GitCommit=$(git rev-parse HEAD) -X main.BuildDate=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")

update:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions grype.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: grype
version: 0.77.4
epoch: 0
epoch: 1
description: Vulnerability scanner for container images, filesystems, and SBOMs
copyright:
- license: Apache-2.0
Expand All @@ -19,7 +19,7 @@ pipeline:

- uses: go/build
with:
ldflags: -w -X main.version=${{package.version}}
ldflags: -X main.version=${{package.version}}
output: grype
packages: ./cmd/grype

Expand Down
12 changes: 6 additions & 6 deletions guac.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: guac
version: 0.6.0
epoch: 1
epoch: 2
description: GUAC aggregates software security metadata into a high fidelity graph database.
copyright:
- license: Apache-2.0
Expand All @@ -25,7 +25,7 @@ pipeline:
with:
packages: ./cmd/guaccollect
output: guaccollect
ldflags: -w -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
ldflags: -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}

- uses: strip

Expand All @@ -34,7 +34,7 @@ subpackages:
pipeline:
- uses: go/build
with:
ldflags: -w -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
ldflags: -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
packages: ./cmd/guacingest
output: guacingest
- uses: strip
Expand All @@ -43,7 +43,7 @@ subpackages:
pipeline:
- uses: go/build
with:
ldflags: -w -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
ldflags: -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
packages: ./cmd/guacone
output: guacone
- uses: strip
Expand All @@ -52,7 +52,7 @@ subpackages:
pipeline:
- uses: go/build
with:
ldflags: -w -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
ldflags: -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
packages: ./cmd/guacgql
output: guacgql
- uses: strip
Expand All @@ -61,7 +61,7 @@ subpackages:
pipeline:
- uses: go/build
with:
ldflags: -w -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
ldflags: -X github.com/guacsec/guac/pkg/version.Version=${{package.version}}
packages: ./cmd/guaccsub
output: guaccsub
- uses: strip
Expand Down
Loading

0 comments on commit 40a17ce

Please sign in to comment.