diff options
| author | Atte Huhtakangas <atte.huhtakangas@gmail.com> | 2026-06-04 17:54:08 +0100 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2026-07-17 10:01:16 -0300 |
| commit | 15faeb9c84cc7aede53738c13fd729b9284fd6c9 (patch) | |
| tree | 638fb0a3e9e3ac02c249b8c57fd15ccfb1647d6c /spec/refresh_cache_spec.lua | |
| parent | 2481be0e2e63c17f9442dba6eb6224a5c9b42697 (diff) | |
| download | luarocks-15faeb9c84cc7aede53738c13fd729b9284fd6c9.tar.gz luarocks-15faeb9c84cc7aede53738c13fd729b9284fd6c9.tar.bz2 luarocks-15faeb9c84cc7aede53738c13fd729b9284fd6c9.zip | |
makedist: fix rockspec tag update producing invalid Lua
The sed that sets the source tag inserted a new line after the url
line without a trailing comma and without removing a pre-existing
tag line. When a release is cut from a tree that carries the previous
release's rockspec (which already has a tag line), the result is a
syntax error:
source = {
url = "git+https://github.com/luarocks/luarocks",
tag = "v3.13.0"
tag = "v3.12.2",
}
This is what shipped in the official luarocks-3.13.0.tar.gz (#1851).
Fix by deleting any existing tag line before inserting the new one
(with a trailing comma), and validate that the rockspec actually
loads as Lua before packing the tarball, using the Lua 5.4 prefix
the script already requires.
Diffstat (limited to 'spec/refresh_cache_spec.lua')
0 files changed, 0 insertions, 0 deletions
