github.com/grahambrereton-form3/tilt@v0.10.18/internal/tiltfile/testdata/testdata.go (about) 1 package testdata 2 3 import ( 4 "path/filepath" 5 "runtime" 6 ) 7 8 func NginxIngressChartPath() string { 9 return filepath.Join(staticPath(), "nginx-ingress-0.31.0.tgz") 10 } 11 12 func staticPath() string { 13 _, file, _, ok := runtime.Caller(0) 14 if !ok { 15 panic("Could not locate path to tiltfile/testdata") 16 } 17 18 return filepath.Dir(file) 19 }