GithubHelp home page GithubHelp logo

solidsnack / arx Goto Github PK

View Code? Open in Web Editor NEW
175.0 175.0 15.0 318 KB

Bundles code and a job to run for local or remote execution.

License: Other

Shell 73.57% Haskell 25.57% Makefile 0.86%
haskell jobs shell tmp

arx's People

Contributors

dradetsky avatar matthewbauer avatar solidsnack avatar tomberek 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  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  avatar  avatar  avatar  avatar  avatar

arx's Issues

Homebrew test block fails for 0.3.1

I'm not sure if the problem is in arx or if the test needs some sort of update. The test runs

  test do
    testscript = (testpath/"testing.sh")

    testscript.write shell_output("#{bin}/arx tmpx // echo 'testing'")
    testscript.chmod 0555

    assert_match /testing/, shell_output("./testing.sh")
  end

and fails like this:

iMac-TMP:~ joe$ brew test -vd arx
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/arx.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cabal-install.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghc.rb
Testing arx
/usr/bin/sandbox-exec -f /private/tmp/homebrew20180717-14598-1poz20k.sb /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew:/usr/local/Homebrew/Library/Homebrew/cask/lib -- /usr/local/Homebrew/Library/Homebrew/test.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/arx.rb -vd
/usr/local/Homebrew/Library/Homebrew/test.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/arx.rb
==> /usr/local/Cellar/arx/0.3.1/bin/arx tmpx // echo 'testing'
arx: System/Posix/ARX/TMPXTools.hs:60:3-80: Irrefutable pattern failed for pattern a : b : c : d : e : f : []

/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
Test::Unit::AssertionFailedError: <0> expected but was
<1>.
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 

GHC 8.4.1 build failure

bash-3.2$ cabal install --jobs=8 --max-backjumps=100000 --prefix=/usr/local/Cellar/arx/0.2.3
clang: warning: -Wl,-headerpad_max_install_names: 'linker' input unused
clang: warning: argument unused during compilation: '-L/usr/local/lib'
clang: warning: argument unused during compilation: '-L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries'
Resolving dependencies...
Notice: installing into a sandbox located at
/private/tmp/arx-20180322-34085-wwhcwq/arx-0.2.3/.cabal-sandbox
Configuring arx-0.2.3...
Building arx-0.2.3...
Failed to install arx-0.2.3
Build log ( /private/tmp/arx-20180322-34085-wwhcwq/arx-0.2.3/.cabal-sandbox/logs/ghc-8.4.1/arx-0.2.3-KZlIEVs7LlkHdOpLORldu2.log ):
cabal: Entering directory '.'
Configuring arx-0.2.3...
clang: warning: -Wl,-headerpad_max_install_names: 'linker' input unused
clang: warning: argument unused during compilation: '-L/usr/local/lib'
clang: warning: argument unused during compilation: '-L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries'
Preprocessing executable 'arx' for arx-0.2.3..
Building executable 'arx' for arx-0.2.3..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: System.Posix.ARX
                                                                                                 System.Posix.ARX.CLI
                                                                                                 System.Posix.ARX.CLI.CLTokens
                                                                                                 System.Posix.ARX.CLI.Options
                                                                                                 System.Posix.ARX.HEREDat
                                                                                                 System.Posix.ARX.Programs
                                                                                                 System.Posix.ARX.Sh
                                                                                                 System.Posix.ARX.TMPXTools
                                                                                                 System.Posix.ARX.Tar
[ 1 of 10] Compiling System.Posix.ARX.CLI.CLTokens ( System/Posix/ARX/CLI/CLTokens.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/CLI/CLTokens.o )
[ 2 of 10] Compiling System.Posix.ARX.HEREDat ( System/Posix/ARX/HEREDat.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/HEREDat.o )
[ 3 of 10] Compiling System.Posix.ARX.Sh ( System/Posix/ARX/Sh.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/Sh.o )
[ 4 of 10] Compiling System.Posix.ARX.CLI.Options ( System/Posix/ARX/CLI/Options.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/CLI/Options.o )
[ 5 of 10] Compiling System.Posix.ARX.TMPXTools ( System/Posix/ARX/TMPXTools.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/TMPXTools.o )
[ 6 of 10] Compiling System.Posix.ARX.Tar ( System/Posix/ARX/Tar.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/Tar.o )
[ 7 of 10] Compiling System.Posix.ARX.Programs ( System/Posix/ARX/Programs.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/Programs.o )
[ 8 of 10] Compiling System.Posix.ARX ( System/Posix/ARX.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX.o )
[ 9 of 10] Compiling System.Posix.ARX.CLI ( System/Posix/ARX/CLI.hs, dist/dist-sandbox-41c3296e/build/arx/arx-tmp/System/Posix/ARX/CLI.o )

System/Posix/ARX/CLI.hs:153:10: error:
    • No instance for (Semigroup ZOM)
        arising from the superclasses of an instance declaration
    • In the instance declaration for ‘Monoid ZOM’
    |
153 | instance Monoid ZOM where
    |          ^^^^^^^^^^
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
arx-0.2.3-KZlIEVs7LlkHdOpLORldu2 failed during the building phase. The
exception was:
ExitFailure 1
bash-3.2$ 

Building arx on Linux

Hello fellow githubbers from the Linuxbrew project!

We're trying to build arx at Linuxbrew/homebrew-core#2526 and are facing the following error (log):

System/Posix/ARX/TMPXTools.hs:14:1: error:
    Failed to load interface for ‘Blaze.ByteString.Builder’
    Perhaps you meant
      Data.ByteString.Builder (from bytestring-0.10.8.1)
    Use -v to see a list of the files searched for.

System/Posix/ARX/TMPXTools.hs:15:1: error:
    Failed to load interface for ‘Data.FileEmbed’
    Use -v to see a list of the files searched for.
make: *** [arx] Error 1

Can you help us troubleshoot the problem?

arx doesnt support tar.xz files

The file magic of some archives:
  /nix/store/vd0f8ay02rbhv63id9r55vig73j58pbc-tarball/tarball/bundle.tar.xz
could not be interpreted.

Reusable temp directory

I've got a branch I'm working on for this. Basically, I want to make arx executables a little bit faster when run a second time. Instead of generating a new token for each invocation, why not just hardcode a hash based on the archive. That way you don't have to extract the archive new every time.

/cc @solidsnack

Unrelated to this, but I've been using arx for a project of mine called nix-bundle that creates executables from nix closures. The portability of arx has been really helpful in doing this! The main issue has been dealing with slow startup times. AppImageKit tries to improve on this by using zisofs or squashfs compression which can be decompressed when they're accessed. Anyway, it requires FUSE/ELF to work so it makes things less portable so I think the TAR route is the best way to go.

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.