mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-17 11:22:32 +00:00
- The tools directory ideally should not contain source code - Removes double vendoring of packagages - Makes it easer to hook the build into the top-level Makefile Eventually, the plugin should be moved to the infrakit repo. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
17 lines
283 B
Go
17 lines
283 B
Go
package template
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// defaultContextURL returns the default context URL if none is known.
|
|
func defaultContextURL() string {
|
|
pwd := "/"
|
|
if wd, err := os.Getwd(); err == nil {
|
|
pwd = wd
|
|
} else {
|
|
pwd = os.Getenv("PWD")
|
|
}
|
|
return "file://localhost" + pwd + "/"
|
|
}
|