Replies: 0 comments 6 replies
-
tea/cli is unable to compile from sources and only supports binary packages. There is no way I can see that The only way go would be compiled from source is if you clone pantry.core and invoke |
Beta Was this translation helpful? Give feedback.
-
Oh, I do apologise for the wrong statement. I've investigated this further and I see that the problem is not regarding compilation, but indeed installation of LLVM and it happens only on Linux (or at least not on MacOS). Consider the following Dockerfile: FROM debian:latest
RUN apt-get update \
&& apt-get install -y curl \
&& curl -Lo tea-install.sh tea.xyz \
&& YES=1 sh tea-install.sh \
&& tea https://gist.githubusercontent.com/i0bj/2b3afbe07a44179250474b5f36e7bd9b/raw/colors.go --yellow \
&& du -d 1 -h /root/.tea > /root/du-result.txt Once the image is built, you can list docker build -t tea-go-test .
docker run -it --rm more /root/du-result.txt
424K /root/.tea/zlib.net
508M /root/.tea/go.dev
2.8G /root/.tea/llvm.org
13M /root/.tea/openssl.org
1023M /root/.tea/tea.xyz
4.3G /root/.tea As far as I understand, we need LLVM to be able to compile CGO code. Probably we can be more intelligent here and check first if project or script really needs CGO or not. |
Beta Was this translation helpful? Give feedback.
-
@ilyaglow I have made Your example will no longer fetch In the future we can make it so companions are in fact hooks that trigger installation as they are requested by other tools (or the user). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I noticed that if I want to run some Go code with tea using a command like:
tea main.go
the tea will start to download LLVM and compile Go from sources, which takes forever to finish and leads to out of memory errors on devices without many GBs of RAM.Is binary packages something you can consider?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions