hasundue / molt

Update dependencies the Deno way
https://jsr.io/@molt
MIT License
79 stars 5 forks source link

Can't update a lock file in some cases #191

Closed 5ouma closed 2 months ago

5ouma commented 3 months ago

I tried to update the deno.json and deno.lock by molt deno.json -w --unstable-lock and molt-action. It says this and outputs an error.

Can't update a lockfile for an import map including any URL that can'be imported as is.

These might be the factors that reproduce this.


ref:

5ouma commented 3 months ago

The code that outputs this message is here. https://github.com/hasundue/molt/blob/dfe31680d2ef102bab2d4867d2631e7178598623/core/update.ts#L421-L436

hasundue commented 3 months ago

I'm aware of the issue, and was just working on it today, but your additional information helps a lot! Thanks for reporting.