Open zhutmost opened 8 months ago
The workflow configuration yaml is like this:
# Workflow to upgrade the Scala dependencies automatically
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
name: Upgrade Scala Dependencies with Steward
jobs:
scala-steward:
runs-on: ubuntu-latest
name: Launch Scala Steward
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
with:
author-name: "GitHub Action"
author-email: "action@github.com"
github-app-id: "*******"
github-app-installation-id: "*******"
github-app-key: ${{ secrets.APP_PRIVATE_KEY }}
github-app-auth-only: 'true'
repo-config: "./.scala-steward.conf"
repos-file: 'repos.md'
mill-version: '0.11.6'
It looks like Scala Steward ran code for Mill < 0.11 to extract dependencies. Does the zhutmost/chipmunk repo has a .mill-version
and does it contain a version >= 0.11
?
No, I don't specify a mill version in my project. And because I use some 0.11 API in my build.sc, it will throw another error (xxx type not found) when running with mill 0.10.x.
Sounds like a .mill-version
with a 0.11 version would fix this issue then.
I read the code referenced by you. Are you sure Mill 0.11 has an option "-p"?
It looks like Scala Steward ran code for Mill < 0.11 to extract dependencies. Does the zhutmost/chipmunk repo has a
.mill-version
and does it contain a version>= 0.11
?
Ok, let me try. And the configuration mill-version
in github action does not take effect?
Run scala-steward-org/scala-steward-action@v2
with:
mill-version: 0.11.6 // *******************this line
....
adding a .mill-version file works, but specifying the mill-version argument in the action as @zhutmost mentions still triggers the pre 0.11 code path. This code doesn't seem to be taking that github-actions argument into account, looking only at files: https://github.com/scala-steward-org/scala-steward/blob/9ac858c7e61f43ed3648f0fabc7104d0951cce67/modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala#L82
First, thank the developers for your efforts.
I use the Steward GitHub action to manage my Scala projects' dependencies. I am using some mill 0.11 features in a project, so I bumped the
mill-version
in my scala-steward-action configurations to 0.11.6.But the action workflow fails. The following is its log:
I guess the key is that "Cannot resolve -p. Try
mill resolve _
to see what's available." but I have no idea how to fix it. Does someone have any ideas?