solidsnack / arx Goto Github PK
View Code? Open in Web Editor NEWBundles code and a job to run for local or remote execution.
License: Other
Bundles code and a job to run for local or remote execution.
License: Other
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:
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$
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?
The file magic of some archives:
/nix/store/vd0f8ay02rbhv63id9r55vig73j58pbc-tarball/tarball/bundle.tar.xz
could not be interpreted.
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.
Cabal has a new build system: https://cabal.readthedocs.io/en/latest/nix-local-build-overview.html and it is now the default as of Cabal 3.0.
As such, the arx build scripts no longer work on Cabal 3.0. A quick fix is to use the v1-
prefix in the build commands but do note that the v1 commands are deprecated and will be removed altogether in the future.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.