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

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

Open
jarosmpost opened this issue Mar 18, 2024 · 4 comments
Labels
contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team platform-windows

Comments

@jarosmpost
Copy link

jarosmpost commented Mar 18, 2024

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
Copy link
Author

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

@lefou
Copy link
Member

lefou commented Jul 3, 2024

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

@jarosmpost
Copy link
Author

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.

@lefou
Copy link
Member

lefou commented Jul 15, 2024

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

@lefou lefou added the contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contrib Issues related to contrib modules, which are probably maintained by someone outside mill core team platform-windows
Projects
None yet
Development

No branches or pull requests

2 participants