lua-lpeg inheritance fix (#49065)

The parent class function doesn't return the path to the config file. This is one potential fix, or we can add the return back to base builder.
This commit is contained in:
psakievich 2025-02-25 15:14:54 -07:00 committed by GitHub
parent f56675648a
commit 68636e7c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,8 @@ class LuaBuilder(spack.build_systems.lua.LuaBuilder):
# * replaces `-bundle` from the default flags with `-shared`
@when("platform=darwin")
def generate_luarocks_config(self, pkg, spec, prefix):
path = super().generate_luarocks_config(pkg, spec, prefix)
super().generate_luarocks_config(pkg, spec, prefix)
path = self._luarocks_config_path()
with open(path, "a") as cfg:
cfg.write(