babashka / pod-registry Goto Github PK
View Code? Open in Web Editor NEWPod manifests describe where pods can be downloaded, etc.
Pod manifests describe where pods can be downloaded, etc.
version
babashka v1.0.165
platform
Both macOS 12.5 on an M2 and virtualized Ubuntu 22.04 LTS arm64 arch.
problem
On macOS:
Downloading pod jaydeesimon/jsoup (0.1.0)
----- Error --------------------------------------------------------------------
Type: java.nio.file.NoSuchFileException
Message: /Users/sh54/.babashka/pods/repository/jaydeesimon/jsoup/0.1.0/mac_os_x/aarch64/META-INF/MANIFEST.MF
Location: /Users/sh54/bin-scripts/./hiccup-html:4:1
----- Context ------------------------------------------------------------------
1: #!/usr/bin/env bb
2: (require '[babashka.pods :as pods])
3:
4: (pods/load-pod 'jaydeesimon/jsoup "0.1.0")
^--- /Users/sh54/.babashka/pods/repository/jaydeesimon/jsoup/0.1.0/mac_os_x/aarch64/META-INF/MANIFEST.MF
5:
6: (require '[pod.jaydeesimon.jsoup :as jsoup])
7:
8: (println "done require jsoup")
9:
----- Stack trace --------------------------------------------------------------
babashka.pods.impl.resolver/unzip - <built-in>
babashka.pods.impl.resolver/resolve/fn--26835 - <built-in>
clojure.core/mapv/fn--8535 - <built-in>
clojure.core.protocols/fn--8244 - <built-in>
clojure.core.protocols/fn--8204/G--8199--8213 - <built-in>
... (run with --debug to see elided elements)
babashka.pods.sci/load-pod/fn--27053 - <built-in>
babashka.pods.sci/load-pod - <built-in>
clojure.core/apply - <built-in>
babashka.impl.pods/load-pod - <built-in>
On Linux:
----- Error --------------------------------------------------------------------
Type: java.lang.IllegalArgumentException
Message: No executable found for pod jaydeesimon/jsoup (0.1.0) and OS Linux/aarch64
Location: /home/sh54/test/./hiccup-html:4:1
----- Context ------------------------------------------------------------------
1: #!/usr/bin/env bb
2: (require '[babashka.pods :as pods])
3:
4: (pods/load-pod 'jaydeesimon/jsoup "0.1.0")
^--- No executable found for pod jaydeesimon/jsoup (0.1.0) and OS Linux/aarch64
5:
6: (println "done load pod jsoup")
7:
8: (require '[pod.jaydeesimon.jsoup :as jsoup])
9:
----- Stack trace --------------------------------------------------------------
babashka.pods.impl.resolver/match-artifacts - <built-in>
babashka.pods.impl.resolver/resolve - <built-in>
babashka.pods.impl/resolve-pod - <built-in>
babashka.pods.impl/load-pod - <built-in>
babashka.pods.sci/load-pod/fn--26868 - <built-in>
babashka.pods.sci/load-pod - <built-in>
clojure.core/apply - <built-in>
babashka.impl.pods/load-pod - <built-in>
repro
(require '[babashka.pods :as pods])
(pods/load-pod 'jaydeesimon/jsoup "0.1.0")
expected behavior
The pod to load correctly. Other pods I have tried like tzzh/mail
work fine on my machine.
other notes
Also I believe this line should be (pods/load-pod 'jaydeesimon/jsoup "0.1.0")
instead of (pods/load-pod 'jaydeesimon/jsoup)
.
That one is compile as mostly static, except glibc.
(load-pod 'org.babashka/aws "1.0.0")
on linux will download the dynamic one, because we only look at the host's OS and arch.
But on some systems this doesn't work.
Should we then do:
(load-pod 'org.babashka/aws "1.0.0-static")
and provide it as an alternative version? I'm not sure what host settings we can look at otherwise. We could also make the pod resolver listen to some env or system variable, so you don't have to change your code, I think that's better.
We already have a working example:
https://github.com/babashka/pod-registry/blob/master/examples/lanterna.clj
The current expectation is that the pods should be self contained ie it should be self-executable without the need for invoking another interpreter for instance for python files: python3 pod.py
As a pod author, I should be able to specify the interpreter needed to execute my code.
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.