Giter VIP home page Giter VIP logo

pod-registry's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar

pod-registry's Issues

Add support for pod interpreters

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.

Linux static binaries

(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.

Cannot load pod jaydeesimon/jsoup in macOS arm64 and Linux arm64

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).

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.