Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard __ or _ does not resolve commands that have heterogenous params #4279

Open
joan38 opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@joan38
Copy link
Collaborator

joan38 commented Jan 10, 2025

build.sc

import mill._
import mill.scalalib._
import $ivy.`com.lihaoyi::mill-contrib-docker:$MILL_VERSION`
import contrib.docker.DockerModule

object project extends ScalaModule with DockerModule {
  def scalaVersion = "2.13.10"

  object docker extends DockerConfig

  def push(
      environment: String,
      bypassOverrideOwnerCheck: Boolean = false,
      onlyIfChanged: Boolean = false
  ) = T.command(println("toto"))
}

.mill-version

0.10.15

The following commands work:

./mill __.push --environment prod # prints toto
./mill __.push # pushes the docker image

But if .mill-version:

0.11.0

Then it does not work:

./mill __.push --environment jdsnc
[build.sc] [44/49] cliImports 
Unknown arguments: "--environment" "jdsnc"
Expected Signature: push
./mill __.push
Missing argument: --environment <str>
Expected Signature: push
  --bypassOverrideOwnerCheck <bool>
  --environment <str>
  --onlyIfChanged <bool>

Potential culprid: #2511

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant