MCPcopy Index your code
hub / github.com/go-task/task / setupCompiler

Method setupCompiler

setup.go:207–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207func (e *Executor) setupCompiler() error {
208 if e.UserWorkingDir == "" {
209 var err error
210 e.UserWorkingDir, err = os.Getwd()
211 if err != nil {
212 return err
213 }
214 }
215
216 e.Compiler = &Compiler{
217 Dir: e.Dir,
218 Entrypoint: e.Entrypoint,
219 UserWorkingDir: e.UserWorkingDir,
220 TaskfileEnv: e.Taskfile.Env,
221 TaskfileVars: e.Taskfile.Vars,
222 Logger: e.Logger,
223 }
224 return nil
225}
226
227func (e *Executor) readDotEnvFiles() error {
228 if e.Taskfile == nil || len(e.Taskfile.Dotenv) == 0 {

Callers 1

SetupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected