mill icon indicating copy to clipboard operation
mill copied to clipboard

mill init does not work with Windows PowerShell in an enterprise environment

Open jarosmpost opened this issue 1 year ago • 4 comments

Prompt

PS C:\work\test> .\mill.bat -i init com-lihaoyi/mill-scala-hello.g8 --name=example
[build.sc] [49/53] compile
[info] compiling 1 Scala source to C:\work\test\out\mill-build\compile.dest\classes ...
[info] done compiling
[1/1] init > [1/1] mill.scalalib.giter8.Giter8Module.init | Downloading [2/2] artifacts (~0/0 bytes)

Result Nothing is created.

Environment mill version: 0.11.7 mirror.propertes points to our internal Artifactory, which works for the builds.

jarosmpost avatar Mar 18 '24 18:03 jarosmpost

@lefou : Do you need information to reproduce the bug?

jarosmpost avatar Apr 12 '24 16:04 jarosmpost

What is mill.bat? Which version? Can you show the output when run with --debug option?

lefou avatar Jul 03 '24 07:07 lefou

mill.bat is a copy of https://github.com/lefou/millw/blob/main/millw.bat but with some changes for our environment. With --debug it gives the same result:

[1/1] init > [1/1] mill.scalalib.giter8.Giter8Module.init | Downloading [2/2] artifacts (~0/0 bytes)

The problem seems to be that I cannot load data from the Internet (com-lihaoyi/mill-scala-hello.g8), only from our internal Artifactory. But it should at least return an error message.

jarosmpost avatar Jul 04 '24 15:07 jarosmpost

So, this is likely an issue with the community-maintained contrib plugin mill-contrib-artifactory.

lefou avatar Jul 15 '24 09:07 lefou