Deno: Deno install not working without a version tag

Created on 18 Sep 2020  路  3Comments  路  Source: denoland/deno

Hi,

I just found out that deno install is not working properly if the version of a module has not been specified. Without a version tag only one file is downloaded and therefore the installed program does not work due to missing depedencies.
I think it has something to do with the redirect happening but it's just an idea.

How to reproduce?
This does not work properly:
deno install --allow-net -f -n sherlock https://deno.land/x/sherlock/cli.ts
This does:
deno install --allow-net -f -n sherlock https://deno.land/x/[email protected]/cli.ts

I think the first command should have the same results as manually setting the version to let users always install the newest version automatically.

bug cli

All 3 comments

The issue seems to be that deno bundle does not handle redirects for the entrypoint correctly.

Which is #3082. Another reason we need to revert the bundle on install until we resolve some bundle issues. I should be able to start looking at all of this very soon.

Install using bundle was reverted in 1.4.1 which was just released. The redirect issue is a dupe of #3082 like Kitson said.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

motss picture motss  路  3Comments

ry picture ry  路  3Comments

kyeotic picture kyeotic  路  3Comments

CruxCv picture CruxCv  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments