1
0
mirror of https://github.com/ko-build/ko.git synced 2025-02-01 19:14:40 +02:00

11 Commits

Author SHA1 Message Date
Jason Hall
5a8663b58d
[ci] upgrade to Go 1.17 everywhere, clean up configs (#445)
* [ci] upgrade to go 1.17 everywhere

* remove unnecessary step names and shell:bash

gofmt with Go v1.17

* add boilerplate to hack/tools.go
2021-09-22 23:19:13 -04:00
Halvard Skogsrud
040b7c7698
Ignore cobra auto-generate comments in doc diff (#420)
spf13/cobra inserts comments with dates in generated Markdown files.

This change makes the presubmit check ignore those comments when
verifying that ko's Markdown docs are up-to-date.

Also fixes some `shellcheck` warnings.
2021-08-19 08:47:47 -07:00
Jason Hall
780c281292
Generate Markdown docs (#414)
* Generate Markdown docs

This is largely copied from similar work in go-containerregistry

This required moving the Root command definition out of main() into a
place where it could be referenced from the gendoc tooling.

* fix boilerplate

* moar fix boilerplate

* update cmd/ko/main.go

* set -j to GOMAXPROCS at runtime

* rebase on cli-runtime change

* remove trailing whitespace
2021-08-11 13:54:13 -07:00
Jason Hall
8c7b9cbb8b
Implement ko deps (#403)
* Implement ko deps

* actually add deps.go

* specify auth, useragent, platform

* stop reading tar if the context is cancelled

* chmod to the file's perms

* remove support for --platform, modules don't care about build tags

* fix copyright boilerplate

* drop fs dependency

* udpate module integration test to newer Go versions

* use entrypoint to identify the binary

* fix gosec finding, some style comments

* revert modules integration test change
2021-07-30 13:19:40 -04:00
Scott Nichols
c2b862d468
Move ko binary to root of project. (#257)
* Move ko binary to root of project.

* go.mod says required golang version is 1.14

* go install uses the folder name

* lint and copyright bump

* moving the test file changed the test hash.

* more refs of cmd/test

* add deprecation message
2020-12-22 09:31:02 -08:00
Matt Moore
b3645fa096
Add a handful of files to trigger more analyses. (#197)
`.codecov.yaml` - Enable codecov.io coverage reports
`.golangci.yaml` - Enable the enumerated checks in golangci-lint
`boilerplate.*.txt` - Enable file header boilerplate checks for these extensions
2020-09-24 20:15:21 -07:00
Matt Moore
718587b3af
Add hack/update-deps.sh (#193) 2020-09-24 15:56:25 -07:00
Jon Donovan
6e4a93eee0
Add integration tests for various go mod corner cases. (#179)
* Add manual integration tests for various go mod corner cases.

* Move integration test back and actually test the outputs.

I realize now this is run in a travis CI job :) So I'll make it actually work.

* Add _, gofmt

* Add tools build constraint.

* Stop redirecting stderr

* Use local mode to support CI.
2020-08-05 12:16:28 -07:00
jonjohnsonjr
99ecfeb5c4
Add goreleaser GitHub action (#121) 2020-01-24 08:44:56 -08:00
cezkuj
0aca6f6de8 Resolving #21 issue. Fixing conflicts after commands refactoring. Improving version command 2019-05-12 15:16:12 +00:00
cezkuj
e8b7dedbe3 Resolving #21 issue. Adding ko version and simple release script 2019-04-19 15:11:06 +00:00