Skip to content

Issues with mill 1.0.6 #3764

@ex0ns

Description

@ex0ns

I have a strange setup, but I'm basically running a Gitlab pipeline to update all my private github + gitlab repositories. Here is the Gitlab CI config:

github:
  rules:
    # only run when scheduled, or when pushing a commit to the default
    # branch which changed the repos.md file
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      when: never
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
      changes:
        - github.md
      when: on_success
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      when: on_success
  image:
    name: fthomas/scala-steward:0.37.0
    entrypoint: [""]
  variables:
    GITHUB_EMAIL: 'scala-steward@ex0ns.me'
    GITHUB_LOGIN: 'ex0ns'
  script:
    - mkdir --parents "$CI_PROJECT_DIR/.sbt" "$CI_PROJECT_DIR/.ivy2"
    - ln -sfT "$CI_PROJECT_DIR/.sbt"  "$HOME/.sbt"
    - ln -sfT "$CI_PROJECT_DIR/.ivy2" "$HOME/.ivy2"
    - /opt/docker/bin/scala-steward --workspace  "$CI_PROJECT_DIR/workspace" --process-timeout 30min --do-not-fork --repos-file "$CI_PROJECT_DIR/github.md" --repo-config "$CI_PROJECT_DIR/default.scala-steward.conf" --git-author-email "${GITHUB_EMAIL}" --forge-type "github" --forge-api-host "https://api.github.com" --forge-login "${GITHUB_LOGIN}" --git-ask-pass "$CI_PROJECT_DIR/github.sh"
  cache:
    key: scala-steward
    paths:
      - .ivy2/cache
      - .sbt/boot/scala*
      - workspace/store

However when I try to upgrade https://github.com/bot4s/telegram/pulls I get the following error:

2025-11-30 14:45:16,987 INFO   
  ____            _         ____  _                             _
 / ___|  ___ __ _| | __ _  / ___|| |_ _____      ____ _ _ __ __| |
 \___ \ / __/ _` | |/ _` | \___ \| __/ _ \ \ /\ / / _` | '__/ _` |
  ___) | (_| (_| | | (_| |  ___) | ||  __/\ V  V / (_| | | | (_| |
 |____/ \___\__,_|_|\__,_| |____/ \__\___| \_/\_/ \__,_|_|  \__,_|
 v0.37.0
 
2025-11-30 14:45:17,606 INFO  Loaded 316 artifact migration(s)
2025-11-30 14:45:17,778 INFO  Loaded 38 Scalafix migration(s)
2025-11-30 14:45:17,925 INFO  Loaded 2 repo config(s)
2025-11-30 14:45:18,082 INFO  Run self checks
2025-11-30 14:45:18,101 WARN  
The workspace directory is empty: '/builds/ex0ns/scala-steward/workspace'
This is expected if this is your first Scala Steward run.
Make sure to preserve the workspace between runs for all features to work as expected.
https://github.com/scala-steward-org/scala-steward/blob/main/docs/faq.md#why-doesnt-self-hosted-scala-steward-close-obsolete-prs
2025-11-30 14:45:18,258 INFO  Using git version 2.49.1
2025-11-30 14:45:18,814 INFO  Using scalafix 0.14.4
2025-11-30 14:45:19,537 INFO  Using scalafmt 3.10.1
2025-11-30 14:45:20,059 INFO  Removing any run-specific files
2025-11-30 14:45:20,071 INFO  ──────────── Steward bot4s/telegram ────────────
2025-11-30 14:45:20,072 INFO  Check cache of bot4s/telegram
2025-11-30 14:45:20,958 INFO  Clone bot4s/telegram
2025-11-30 14:45:22,063 INFO  Refresh cache of bot4s/telegram
2025-11-30 14:45:22,217 INFO  Get dependencies in . from Mill
2025-11-30 14:45:24,073 ERROR Steward bot4s/telegram failed
org.scalasteward.core.io.process$ProcessFailedException: 'mill --no-server --ticker false --import ivy:org.scala-steward::scala-steward-mill-plugin::0.19.0 show org.scalasteward.mill.plugin.StewardPlugin/extractDeps' exited with code 127.
Downloading mill 1.0.6 from https://repo1.maven.org/maven2/com/lihaoyi/mill-dist-native-linux-amd64/1.0.6/mill-dist-native-linux-amd64-1.0.6.exe ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  5 54.8M    5 2855k    0     0  15.4M      0  0:00:03 --:--:--  0:00:03 15.4M
 67 54.8M   67 37.1M    0     0  31.5M      0  0:00:01  0:00:01 --:--:-- 31.4M
100 54.8M  100 54.8M    0     0  32.4M      0  0:00:01  0:00:01 --:--:-- 32.4M
/usr/local/bin/mill: exec: line 339: /root/.cache/mill/download/1.0.6-native-linux-amd64: not found
	at org.scalasteward.core.io.process$.$anonfun$slurp$7(process.scala:78)
	at org.scalasteward.core.io.process$.$anonfun$slurp$7$adapted(process.scala:72)
	at flatMap @ org.scalasteward.core.io.process$.$anonfun$slurp$5(process.scala:72)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at modify @ fs2.internal.Scope.$anonfun$open$4(Scope.scala:149)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at uncancelable @ fs2.Compiler$Target.uncancelable(Compiler.scala:165)
	at rethrow$extension @ fs2.Compiler$Target.$anonfun$compile$1(Compiler.scala:157)
	at get @ fs2.internal.Scope.openScope(Scope.scala:278)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Pull$.$anonfun$compile$21(Pull.scala:1214)
2025-11-30 14:45:24,076 INFO  ──────────── Total time: Steward bot4s/telegram: 4s 4ms ────────────

I have no idea of where this line /usr/local/bin/mill: exec: line 339: /root/.cache/mill/download/1.0.6-native-linux-amd64: not found is coming from ?
The same setup works for https://github.com/bot4s/zmatrix/pulls which is using 0.12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions