jonjohnsonjr
451287a90e
Update ggcr ( #83 )
2019-09-20 09:29:57 -07:00
Jason Hall
133ae27c63
Use debug.ReadBuildInfo to populate ko version
( #81 )
...
* Use debug.ReadBuildInfo to populate `ko version`
* don't print version on build info failure
* Build using Go 1.12 and 1.13
* drop 'version: ' prefix
* println
2019-09-12 14:59:50 -07:00
jonjohnsonjr
99a587ede5
Add build.Limiter ( #79 )
...
* Add build.Limiter
You can limit the number of concurrent builds with -j (a la make).
The default value for this is GOMAXPROCS, which seems reasonable.
2019-09-11 10:07:02 -07:00
jonjohnsonjr
3a17dee60a
Use GOOS/GOARCH from base image ( #77 )
2019-08-19 10:02:17 -07:00
jonjohnsonjr
96455023a3
Fix date command ( #75 )
2019-08-16 09:59:27 -07:00
jonjohnsonjr
ee58128ba3
Fix README formatting ( #74 )
...
Apparently those newlines are important.
2019-08-16 09:52:45 -07:00
zxxa
bd404f30ef
add SOURCE_DATE_EPOCH usage ( #72 )
2019-08-16 09:50:39 -07:00
Jason Hall
b7eb9dfe48
Merge pull request #58 from ImJasonH/strict
...
Implement "strict mode" which requires `ko://` prefix for import paths
2019-08-15 21:48:35 -04:00
Jason Hall
91f571887c
Make callers type out all of --strict
2019-08-15 21:44:56 -04:00
Matt Moore
a3656d1441
Add support for recursively resolving directory symlinks. ( #73 )
...
* Add support for recursively resolving directory symlinks.
This adds support for properly resolving directory symlinks within kodata.
I verified that with this I can symlink `.git/refs` into `kodata/` and (with
changes) resolve the `.git/HEAD` symlink to read the appropriate
`ref: refs/heads/...` files with the commit SHA.
* Incorporate code review feedback
2019-08-15 17:59:15 -07:00
Jason Hall
fee3c269a8
Review feedback
2019-08-15 16:55:26 -04:00
Jason Hall
9776d347fe
Improve strict-mode error message
2019-08-15 15:02:02 -04:00
Jason Hall
3315663a21
Remove strictness checks from build, into resolve
...
Strictness has nothing to do with building, and is independent of how
images are built (fixed builder, some future exotic builder type, etc.)
2019-08-15 14:22:45 -04:00
Jason Hall
4342ceff74
Implement "strict mode"
...
When ko is invoked in this mode, import paths must have the `ko://`
prefix. If a human marks an import path with `ko://` and ko can't
resolve the resulting import path, it fails. In "loose mode", such an
import path would be silently ignored and passed on to the resolved
YAML, often resulting in invalid image names (e.g., `image:
github.com/foo/bar`)
In loose mode, `ko://` prefixes are always ignored for
backward-compatibility.
2019-08-15 09:45:59 -04:00
Matt Moore
2d12e28795
Add permissions to the kodata directory. ( #68 )
...
I suspect that this may be a source of problems reading kodata with nonroot,
but it is probably worth doing either way.
2019-08-12 07:12:47 -07:00
Jason Hall
c959e60df3
Merge pull request #67 from ImJasonH/mod
...
Use go modules
2019-08-09 18:07:15 -04:00
Jason Hall
8f817fdc45
use go modules
2019-08-08 12:01:11 -04:00
Jason Hall
9242988fb1
Merge pull request #66 from ImJasonH/cobra
...
Update cobra dep
2019-07-25 13:57:03 -04:00
Jason Hall
d3ab89fbf2
update Gopkg.toml
2019-07-25 13:47:42 -04:00
Jason Hall
caa953d3c3
Update cobra dep
2019-07-25 10:14:57 -04:00
tanner-bruce
48afd62710
Allow skipping TLS verification while publishing ( #65 )
...
Why this is necessary: when using a local docker registry, users may not
want to support https, or there may be other troubles not allowing
verifiable TLS support.
This commit adds this functionality by adding an `--insecure-registry`
flag.
2019-07-24 10:58:10 -07:00
jonjohnsonjr
3a0e70e520
Fix mult-doc yaml re-joining ( #63 )
2019-07-23 09:04:40 -07:00
Jason Cooke
0df8b2497e
docs: fix typo ( #61 )
2019-07-16 18:30:19 -07:00
jonjohnsonjr
3566d3f01a
Add go module support ( #60 )
...
* Add go module support
* Make localimports work for go modules
2019-07-12 22:54:25 -07:00
Sumanth Chinthagunta
d35600780e
Update gobuild.go ( #56 )
...
Changing the order of environment variables so that user supplied value for `CGO_ENABLED` take priority
https://github.com/google/ko/issues/52
2019-07-08 20:21:10 -07:00
Marek Schwarz
0af2e5e8a9
Added command completion ( #49 )
...
* Enable command completion (#27 )
* Added documentation (#27 )
2019-07-08 17:04:58 -07:00
Jason Hall
93ba9aa496
Merge pull request #53 from spencer-p/master
...
Use a more appropriate idiom in README
2019-07-08 18:37:40 -04:00
Spencer Peterson
f9504d09a6
Use a more appropriate idiom
2019-07-08 14:11:23 -07:00
Scott Weiss
0c205ab8e4
add selector flag and logic ( #46 )
...
* add selector flag and logic
* comments, cleanup
* add readme note for selector flag
* preserve comments, fix nits
* readme nit
2019-06-27 13:55:47 -07:00
jonjohnsonjr
b7d1820e13
Compress layers when we Build them ( #47 )
...
This avoids double-compressing later.
2019-06-25 16:30:25 -07:00
jonjohnsonjr
f46a2b6372
Add author and created_by data ( #45 )
...
Fixes #42
2019-06-24 12:58:37 -07:00
Jason Hall
d32f069b69
Merge pull request #43 from mattmoor/update-ggcr
...
Pull in the config change to ggcr.
2019-06-23 14:09:01 -04:00
Matt Moore
6500b08a99
Pull in the config change to ggcr.
2019-06-23 15:53:29 +00:00
jonjohnsonjr
116114f1f9
Bump ggcr depenency ( #41 )
...
* Update ggcr dependency
* Update kode
Fixed remote.Write interface change.
Drop name.WeakValidation (now default).
2019-06-21 13:15:10 -07:00
Naomi Seyfer
9bae8ab408
Print images to stdout as we publish them. ( #36 )
2019-05-31 10:20:09 -07:00
Jason Hall
8a084cb5d2
Merge pull request #25 from cezkuj/ko-version
...
Resolving #21 issue. Adding ko version and simple release script
2019-05-17 10:40:26 -04:00
cezkuj
672e478602
Resolving #21 issue. Adding git-dir flag to always execute inside ko's directory in GOPATH
2019-05-17 05:54:03 +00:00
cezkuj
0aca6f6de8
Resolving #21 issue. Fixing conflicts after commands refactoring. Improving version command
2019-05-12 15:16:12 +00:00
jonjohnsonjr
cef9764e3d
Return better error messages ( #33 )
...
This hoists the publisher creation out of the loop for `ko publish` to
avoid needlessly resolving credentials multiple times.
This pulls the publisher creation outside of resolveFilesToWriter so we
can fail earlier if e.g. KO_DOCKER_REPO is unset, otherwise we start up
the kubectl goroutine and it would asynchronously fail with:
error: no objects passed to apply
2019-04-30 13:08:54 -05:00
Scott Nichols
7c4a93a717
Adding create. ( #30 )
2019-04-26 16:28:22 -07:00
Scott Nichols
6f9fb7f753
Move ko commands to pkg/commands ( #29 )
...
* Move commands to pkg/commands and split into files.
2019-04-26 15:56:15 -07:00
Scott Nichols
fba1d3d90a
Moving options to pkg/commands/options. ( #28 )
2019-04-26 15:25:40 -07:00
cezkuj
e8b7dedbe3
Resolving #21 issue. Adding ko version and simple release script
2019-04-19 15:11:06 +00:00
Adam Harwayne
b0a1702132
Add --disable-optimizations flag to make debugging easier. ( #24 )
...
* Ignore GoLand files.
* Add --disable-optimizations flag to make debugging easier.
* Fix unit test (by ignoring the new functionality).
2019-04-18 10:18:29 -07:00
jonjohnsonjr
3584e2d4d3
Merge pull request #16 from dvrkps/patch-1
...
check NewGo error
2019-03-22 12:37:24 -07:00
jonjohnsonjr
eab537e91f
Merge pull request #17 from ImJasonH/weak
...
Drop name.WeakValidation
2019-03-22 12:37:02 -07:00
Jason Hall
86a2d43f43
Drop name.WeakValidation
2019-03-22 15:02:13 -04:00
Davor Kapsa
2547a9c6b3
check NewGo error
2019-03-22 18:46:51 +01:00
jonjohnsonjr
f0a367da93
Merge pull request #15 from google/ImJasonH-patch-1
...
Run tests with Go 1.11 and 1.12 (drop 1.10)
2019-03-21 19:52:57 -07:00
Jason Hall
021e392d3a
Merge pull request #14 from ImJasonH/fix
...
Update ko to ggcr head, update ggcr vendor
2019-03-21 19:15:48 -04:00