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

Strange parsing exeception when using in-repo ./mill script #3042

Closed
lefou opened this issue Feb 20, 2024 · 2 comments
Closed

Strange parsing exeception when using in-repo ./mill script #3042

lefou opened this issue Feb 20, 2024 · 2 comments
Milestone

Comments

@lefou
Copy link
Member

lefou commented Feb 20, 2024

Noticed it, while analyzing, why one of our Github Actions fail constantly.

> ./mill --import ivy:io.chris-kipp::mill-github-dependency-graph::0.2.6 resolve io.kipp.mill.github.dependency.graph.Graph/generate
[build.sc] [47/53] zincReportCachedProblems 
Parsing exception Position 1:14, found "=./mill"

It does not happen if I run it with just mill.

> mill --import ivy:io.chris-kipp::mill-github-dependency-graph::0.2.6  resolve io.kipp.mill.github.dependency.graph.Graph/generate
[1/1] resolve 
generate

It's also not happening when I use millw

> ./millw --import ivy:io.chris-kipp::mill-github-dependency-graph::0.2.6 resolve io.kipp.mill.github.dependency.graph.Graph/generate
[1/1] resolve 
generate

So, it must be something within our in-repo mill script.

@lefou
Copy link
Member Author

lefou commented Feb 20, 2024

There is probably some issue with the first arg detection. Maybe the --import is matched by the code that is supposed to match -i.

> sh -x ./mill --import ivy:io.chris-kipp::mill-github-dependency-graph::0.2.6  resolve io.kipp.mill.github.dependency.graph.Graph/generate
+ set -e
+ '[' -z '' ']'
+ DEFAULT_MILL_VERSION=0.11.6
+ '[' -z '' ']'
+ '[' -f .mill-version ']'
+ '[' -f .config/mill-version ']'
++ head -n 1 .config/mill-version
+ MILL_VERSION=0.11.6-61-710ac8
+ '[' x '!=' x ']'
+ MILL_DOWNLOAD_PATH=/home/lefou/.cache/mill/download
+ MILL_EXEC_PATH=/home/lefou/.cache/mill/download/0.11.6-61-710ac8
+ version_remainder=0.11.6-61-710ac8
+ MILL_MAJOR_VERSION=0
+ version_remainder=11.6-61-710ac8
+ MILL_MINOR_VERSION=11
+ version_remainder=6-61-710ac8
+ '[' '!' -s /home/lefou/.cache/mill/download/0.11.6-61-710ac8 ']'
+ '[' -z '' ']'
+ MILL_MAIN_CLI=./mill
+ MILL_FIRST_ARG=
+ '[' --import = --bsp ']'
+ '[' - '!=' --import ']'
+ MILL_FIRST_ARG=--import
+ shift
+ unset MILL_DOWNLOAD_PATH
+ unset MILL_VERSION
+ exec /home/lefou/.cache/mill/download/0.11.6-61-710ac8 --import -D mill.main.cli=./mill ivy:io.chris-kipp::mill-github-dependency-graph::0.2.6 resolve io.kipp.mill.github.dependency.graph.Graph/generate
[build.sc] [47/53] zincReportCachedProblems 
Parsing exception Position 1:14, found "=./mill"

@lefou lefou changed the title Strange parsing exeception when useing in-repo ./mill script Strange parsing exeception when using in-repo ./mill script Feb 20, 2024
@lefou
Copy link
Member Author

lefou commented Apr 23, 2024

@lefou lefou closed this as completed Apr 23, 2024
@lefou lefou added this to the 0.11.8 milestone Apr 23, 2024
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