1
0
mirror of https://github.com/ko-build/ko.git synced 2025-01-08 15:06:14 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
jonjohnsonjr
3a17dee60a
Use GOOS/GOARCH from base image (#77) 2019-08-19 10:02:17 -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
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
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
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
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
Davor Kapsa
2547a9c6b3
check NewGo error 2019-03-22 18:46:51 +01:00
Jason Hall
ab8152ad0a Update ko to ggcr head, update ggcr vendor 2019-03-21 18:51:39 -04:00
Jason Hall
d90911552c fix gobuild_test.go 2019-03-21 16:03:47 -04:00
Jason Hall
d580f39279 fix unit tests 2019-03-21 15:59:33 -04:00
Jason Hall
6354665a42 Initial commit 2019-03-14 14:23:47 -04:00