Gareth Evans
74b6b09609
fix(golangBuild) properly handle multi main package builds
...
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
2022-04-26 09:38:49 +02:00
Oliver Nocon
62b3a9a459
fix(versioning): properly consider go.mod ( #3687 )
...
* fix(versioning): properly consider go.mod
* fix test
2022-03-31 17:07:10 +02:00
Maximilian Braun
040a2c36ef
fix(golangBuild): order of arguments ( #3645 )
...
* fix: order of go build arguments
As per https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies
The `go build [-o output] [build flags] [packages] ` -ldflags shall be put before packages.
The build may fail this way
```
running command: go build -trimpath -o foo-linux.amd64 ./cmd/main.go -ldflags '-linkmode=external'
named files must be .go files: -ldflags
```
2022-03-18 12:03:45 +01:00
Oliver Nocon
6247c5dddd
feat(buildsettings): golang and future tools ( #3561 )
...
Co-authored-by: Christian Volk <christian.volk@sap.com>
2022-02-21 09:16:48 +01:00
Christian Volk
65ab680f53
fix(golangBuild): remove system paths from the compiled executables ( #3560 )
2022-02-18 14:46:21 +01:00
Christian Volk
6a466b28fd
fix(golangBuild): cyclonedx-gomod import path ( #3541 )
...
* fix(golangBuild): cyclonedx-gomod import path
* fix tests
2022-02-14 12:07:25 +01:00
Christian Volk
c888e21e6c
chore(multiarch): helper to parse targetArchitectures ( #3525 )
...
* chore(docker): helper to parse targetArchitectures
* missing files
2022-02-10 16:46:00 +01:00
Siarhei Pazdniakou
4660f3a311
feat(golangBuild): add BOM creation ( #3496 )
...
* Added BOM creation
* Fix cyclonedx install
* undo config.yml changes
* metadata was updated
* Update golangBuild.go
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-02-08 09:23:33 +01:00
Christian Volk
56726d96f1
fix(golangBuild): expect status 201 instead of 200 ( #3508 )
2022-02-04 15:30:42 +01:00
Christian Volk
ed7323175d
feat(golangBuild): publish to subfolder ( #3503 )
...
* feat(golangBuild): publish to subfolder
* edge case handling
* fix
2022-02-04 15:22:57 +01:00
Christian Volk
a90cf78565
fix(golangBuild): use PUT instead of POST ( #3504 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-02-04 14:46:52 +01:00
Oliver Nocon
42b9c2ce48
Revert "fix(golangBuild): keep track of the artifactversion in binary names ( #3498 )" ( #3499 )
...
This reverts commit ec783b0da6
.
2022-02-03 11:23:34 +01:00
Christian Volk
ec783b0da6
fix(golangBuild): keep track of the artifactversion in binary names ( #3498 )
...
* fix(golangBuild): keep track of the artifactversion in binary names
* improve the naming scheme
2022-02-02 17:30:56 +01:00
Christian Volk
78dac5973b
feat(golangBuild): add support for publishing binaries ( #3495 )
2022-02-02 15:44:51 +01:00
Christian Volk
880be73a4c
feat(golangBuild): support private modules ( #3471 )
...
* feat(golangBuild): support private module repositories
2022-01-31 10:45:40 +01:00
Oliver Nocon
9a78fabc89
feat(golangBuild): add new step for building go ( #3178 )
...
* feat(golangBuild): add new step for building go
* chore(golangBuild): increase test coverage
* remove indirect dependencies
* cleanup go.sum
* chore: remove trailing spaces
* chore(golangBuild): cleanup params, add groovy wrapper
* fix: update docker options
* update docs
* update installation according to https://golang.org/doc/go-get-install-deprecation
* fix: update installation
* update groovy test exclusion
* Update vars/golangBuild.groovy
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
* update branch
* address PR feedback
* fix compilation error
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2021-12-06 16:17:59 +01:00