Fork me on GitHub
#babashka
<
2023-01-17
>
Nundrum16:01:38

Are any of the HTML parsing libs/pods compatible with deploying as an uberscript?

lispyclouds16:01:12

@U02UHTG2YH5 by uberscript if your expectation is to be able to bundle the pod to avoid the download, that would not work i think

Nundrum16:01:31

I'm trying to convert an old TCL script to babashka. It's remarkably terse. Bootleg seems an odd fit, but I see there's a JSoup pod. I might give that a try. Thanks!

lispyclouds16:01:50

just to clarify, youre fine with downloading the pod when needed right? ubescripts are generally meant for bundling up deps into one big file to avoid downloads

Nundrum16:01:44

I don't think I have much choice.

Nundrum16:01:29

Also, I've maybe hit a bug?

> bb nrepl                                                                                
Downloading pod jaydeesimon/jsoup (0.1.0)                                                     
Exception in thread "main" java.nio.file.NoSuchFileException: /home/robbie/.babashka/pods/repository/jaydeesimon/jsoup/0.1.0/linux/x86_64/META-INF/MANIFEST.MF 
       at [email protected]/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219) 
       at [email protected]/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) 
       at [email protected]/java.nio.file.Files.newOutputStream(Files.java:220)              
       at [email protected]/java.nio.file.Files.copy(Files.java:3067) 
       at babashka.pods.impl.resolver$unzip.invokeStatic(resolver.clj:74) 
       at babashka.pods.impl.resolver$resolve$fn__26816.invoke(resolver.clj:208)

lispyclouds16:01:09

how did you declare the pod name?

lispyclouds16:01:23

the name looks wrong

Nundrum16:01:27

:pods {jaydeesimon/jsoup {:version "0.1.0"}}

Nundrum16:01:01

It downloaded a file to ~/.babashka/pods/repository/jaydeesimon/jsoup/0.1.0/linux/x86_64/pod-jaydeesimon-jsoup-0.1.zip

lispyclouds16:01:50

well the zip looks wrong

borkdude16:01:51

@U02UHTG2YH5 Do you have XDG_CACHE_HOME and XDG_DATA_HOME set? you might be hitting a bug that's been fixed on master

lispyclouds16:01:12

@U04V15CAJ the zip thats in the manifest seems to be a jar file

borkdude16:01:40

oooh right, -

Nundrum16:01:46

no, neither of them are set

borkdude16:01:31

That's an open issue for a long time. @U02UHTG2YH5 I recommend going with the bootleg pod for now

borkdude16:01:57

I think it might be better to remove the jsoup pod from the registry since it doesn't work anyway

lispyclouds16:01:14

yeah the artifact there looks quite messed up

Nundrum16:01:16

Ah, I see. Glad you pointed that out.

lispyclouds19:01:04

@U04V15CAJ should i remove the jsoup pod from the registry with a note on the issue?

borkdude19:01:25

yeah, please do

borkdude19:01:20

Danke schön

2