TezosTaqueria / taqueria

*BETA* Taqueria provides a seamless development workflow to easily build, test and deploy your Tezos applications.
https://taqueria.io
Apache License 2.0
64 stars 20 forks source link

🐛 Bug ➾ Ligo plugin fails to compile contracts #1238

Closed mbodecek closed 2 years ago

mbodecek commented 2 years ago

🆘 What happened?

I'm getting the following error when running taq compile with @taqueria/plugin-ligo:

Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/root/ligo": stat /root/ligo: permission denied: unknown

This happens for all ligo contracts including Taqueria scaffolds. The same error has been observed on Windows with WSL

When docker running a ligo container is invoked manually, it works fine:

docker run -v $PWD:/project -w /project --rm -i ligolang/ligo:0.50.0 compile contract contracts/hello-tacos.mligo --output-file artifacts/hello-tacos.tz

🪵 Relevant log output

mbodecek@mb-mac dp % taq scaffold https://github.com/ecadlabs/taqueria-scaffold-taco-shop taco-shop

 Scaffolding 🛠 
 into: /Users/mbodecek/work/dp/taco-shop
 from: https://github.com/ecadlabs/taqueria-scaffold-taco-shop 

Cloning into '/Users/mbodecek/work/dp/taco-shop'...

 Initializing Project...
    ✓ Remove Git directory
    ✓ Install plugins
    ✓ Run scaffold post-init script
    ✓ Project Taq'ified 

🌮 Project created successfully 🌮
mbodecek@mb-mac dp % cd taco-shop 
mbodecek@mb-mac taco-shop % taq compile hello-tacos.mligo                                                 

=== For hello-tacos.mligo ===
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/root/ligo": stat /root/ligo: permission denied: unknown.

┌───────────────────┬──────────────┐
│ Contract          │ Artifact     │
├───────────────────┼──────────────┤
│ hello-tacos.mligo │ Not compiled │
└───────────────────┴──────────────┘

🐘 How impactful is this bug?

🤯 Major disruption

⏱️ Prevalance

always

💻 Operating System

MacOS

🕸️ System Architecture

x64

🌮 Taqueria Version

v0.16

🌿 Node.js Version

v16.15.1

☎️ Contact Details

No response

Code of Conduct

sinapsist commented 2 years ago

@mbodecek The fix is on the way. PR to the scaffold should be merged by the end of the day. I will keep you posted.