astral-sh / setup-uv

Set up your GitHub Actions workflow with a specific version of https://docs.astral.sh/uv/
MIT License
200 stars 14 forks source link

Newline in ubuntu cache keys #106

Closed pawamoy closed 1 month ago

pawamoy commented 1 month ago

Looks like this isn't causing any issue, but it's confusing when reading the logs. On Ubuntu jobs, the cache key displayed in the post uv step looks like this:

cache saved with the key: setup-uv-1-x86_64-unknown-linux-gnu-0.4.17
-d151c39b8eb058466411ab26be66bd1da5e324b76abbec5606b56ffc1503f067-py3.12

While on MacOS:

cache saved with the key: setup-uv-1-aarch64-apple-darwin-0.4.17-d151c39b8eb058466411ab26be66bd1da5e324b76abbec5606b56ffc1503f067-py3.12

And on the annoying operating system:

cache saved with the key: setup-uv-1-x86_64-pc-windows-msvc-0.4.17-882cc81a13be3cce96fe1733402715f710aea661ba1ad39dffdfa6f0d8157dc7-py3.12
pawamoy commented 1 month ago

Same thing when there's a cache hit:

Cache hit occurred on key setup-uv-1-x86_64-unknown-linux-gnu-0.4.17
-d151c39b8eb058466411ab26be66bd1da5e324b76abbec5606b56ffc1503f067, not saving cache.