From ad20e070e4bb43423058e94ef40d5ab57b6e6315 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 25 Aug 2023 00:41:52 +0800 Subject: [PATCH] fix new.lua url --- scripts/new.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new.lua b/scripts/new.lua index 3d21920c1..fcda51a03 100644 --- a/scripts/new.lua +++ b/scripts/new.lua @@ -105,7 +105,7 @@ function generate_package(reponame, get_data) local tmpfile = os.tmpfile({ramdisk = false}) .. ".tar.gz" repodir = tmpfile .. ".dir" - file:write(' add_urls("https://' .. host .. '/' .. reponame .. '/-/archive/$(version).tar.gz",\n') + file:write(' add_urls("https://' .. host .. '/' .. reponame .. '/archive/refs/tags/$(version).tar.gz",\n') file:print(' "%s")\n', giturl) print("downloading %s", url)