Commit Graph
5 Commits
Author SHA1 Message Date
Dave Protasowski 3cf55a10c9 use automaxprocs to calculate the number of CPUs (#649)
this is  useful for container environments
2022-03-14 15:25:02 -04:00
Dave Protasowski af19d48fa0 bump deps & drop replace directives 2021-02-16 17:27:34 -05:00
Dave Protasowski 6cbfe964d7 [modules] Dependent command packages can now be built with ko (#154)
Thus if you have a (in)direct command package as a dependency
say `myhost.com/go/package/cmd/run` you can now publish this
with the following ko command

  ko publish myhost.com/go/package/cmd/run
2020-05-01 07:18:26 -07:00
Dave Protasowski 429a4097a7 Update .travis.yml (#156) 2020-04-30 16:27:12 -04:00
Dave Protasowskiandjonjohnsonjr 4833bb4a3e Preserve YAML comments & style when resolving/applying (#103)
* Preserve YAML comments & style when resolving/applying

This is accomplished by adopting the yaml.v3 lib. It
exposes a Node struct that's used internally by the
yaml encoder/decoder

ko internally now manipulates YAML documents using this struct

Fixes #101

* add/remove vendored modules

* Apply suggestions from code review

Fix comments

Co-Authored-By: jonjohnsonjr <jonjohnson@google.com>

* update doc link

* Fix use of yaml.Decoder in a test

When the yaml.Decoder returns an io.EOF it implies
there were no YAML documents decoded and that there
are no more!

* Update pkg/resolve/resolve.go

resolve comment suggestion

Co-Authored-By: jonjohnsonjr <jonjohnson@google.com>

* leave ko prefix if we're not operating in strict mode

* move testutils to internal/testing
2019-11-05 12:24:08 -08:00