Skip to content

cue cmd not failing on missing task type #4194

@JensRantil

Description

@JensRantil

What version of CUE are you using (cue version)?

$ cue version
cue version (devel)

CUE language version v0.15.1

Go version go1.25.4
      -buildmode exe
       -compiler gc
       -trimpath true
  DefaultGODEBUG containermaxprocs=0,decoratemappings=0,tlssha1=1,updatemaxprocs=0,x509sha256skid=0
     CGO_ENABLED 1
          GOARCH arm64
            GOOS darwin
         GOARM64 v8.0

Does this issue reproduce with the latest stable release?

Yes.

What did you do?

I put the following content in fixup_tool.cue:

package maklare

import "tool/cli"

command: testdata: {
    mkdirInputs: cli.Mkdir & {
        path: "input"
    }
}

I execute cue cmd testdata and the output is command.testdata: no tasks found.

What did you expect to see?

I expected to see an error telling me the cli.Mkdir can't be found (it should be file.Mkdir). I spent a fair amount of time debugging this. 😅

What did you see instead?

I get the output command.testdata: no tasks found - and particularly no error message that cli.Mkdir can't be found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions