Giter Club home page Giter Club logo

hererocks's Introduction

LuaRocks

A package manager for Lua modules.

Build Status Luacheck Build Status Coverage Status Join the chat at https://gitter.im/luarocks/luarocks

Main website: luarocks.org

It allows you to install Lua modules as self-contained packages called rocks, which also contain version dependency information. This information can be used both during installation, so that when one rock is requested all rocks it depends on are installed as well, and also optionally at run time, so that when a module is required, the correct version is loaded. LuaRocks supports both local and remote repositories, and multiple local rocks trees.

Installing

License

LuaRocks is free software and uses the MIT license, the same as Lua 5.x.

hererocks's People

Contributors

azdle avatar carlsmedstad avatar fperrad avatar hishamhm avatar jirutka avatar lekensteyn avatar mkpankov avatar mpeterv avatar ousttrue avatar resolritter avatar sebthom avatar starius avatar tototest99 avatar un-def avatar xanderio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hererocks's Issues

open to hererocks managing global installs as well?

Hello,

hererocks has some attractive features that luaver lacks. If someone supplied the necessary patches, would you be open to adding the rest of luaver's functionality to hererocks, so that hererocks could manage global installations of lua and luarocks?

Bug in test suite?

The test TestCLI.test_verbose_install_bleeding_edge_luajit_with_latest_luarocks is failing with the following output mismatch:

E                   AssertionError: Expected to see 'b'LuaJIT 2.1.0'' in output of command 'test/here/bin/lua -v', got output:
E                   b'LuaJIT 2.1.ROLLING -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/\n'

This seems like an unintentional failure. As far as I can tell, the test is succeeding: Hererocks is correctly installing the requested version, and the lua command appears to be running the correct program. It seems like this assertSuccess method needs to be adapted somehow to accommodate a prefix match, or the output from lua -v needs to be truncated.

Certificate verification failed for downloading from https://www.lua.org

I'm getting CERTIFICATE_VERIFY_FAILED when using Python Version 3.8.

hererocks c:\hererocks --%LUA% --target %HR_TARGET% -rlatest
Fetching Lua 5.1.5 (target: vs_64) from https://www.lua.org/ftp/lua-5.1.5.tar.gz
Download failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)
Fetching Lua 5.1.5 (target: vs_64) from https://webserver2.tecgraf.puc-rio.br/lua/mirror/ftp/lua-5.1.5.tar.gz
Verifying SHA256 checksum
Error: SHA256 checksum mismatch for C:\Users\appveyor\AppData\Local\HereRocks\Cache\lua-5.1.5.tar.gz
Expected: 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
Observed: 2598647a7dd012b6c346023638258509103d36dd3f15941aebc31c009e6a80ab

With Python 3.9 the download from https://www.lua.org works but unfortunately: Python 3.9 is not available in an Appveyor image together with Visual Studio 2015, see https://www.appveyor.com/docs/windows-images-software/

It seems that Visual Studio 2015 is the latest version supported by hererocks:

hererocks.py: error: argument --target: invalid choice: 'vs19_64' (choose from 'linux', 'macosx', 'freebsd', 
'mingw', 'posix', 'generic', 'mingw', 'vs', 'vs_32', 'vs_64', 'vs08_32', 'vs08_64', 'vs10_32', 'vs10_64', 
'vs12_32', 'vs12_64', 'vs13_32', 'vs13_64', 'vs15_32', 'vs15_64')

As a workaround I got it working by using:

  • AppVeyor image: Windows Server 2012 R2
  • Python Version 3.8
  • Old hererocks version 0.25 without https: pip install git+https://github.com/luarocks/[email protected]
  • Hererock targets vs_32 and vs_64 these are selecting VS 14.0 (x86) and VS 14.0 (x64) which seems to be Visual Studio 2015.

Add ldflags option

Some options, like -flto and -fPIE require that the same or a similar option be passed to
the linker. See the GCC documentation for -pie:

Produce a dynamically linked position independent executable on targets that support it. For predictable results, you must also specify the same set of options used for compilation (-fpie, -fPIE, or model suboptions) when you specify this linker option.

And the documentation for -flto:

To use the link-time optimizer, -flto and optimization options should be specified at compile time and during the final link. It is recommended that you compile all the files participating in the same link with the same options and also specify those options at link time.

It would be helpful to have a --ldflags option that gets passed to all the
linking commands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.