Comments (7)
I've managed to convince docker to update it's local copy and now it works with latest for me also. I had to use:
docker run --update always ghcr.io/refaktor/rye:latest -do "print 123 + 123"
And now it works even without --update always. Various docker image|build prune
-s didn't work. So I consider this issue closed. Thanks for opening it and clearing this up.
from rye.
Actually, it looks like it may be an issue with 0.0.18 that has since been fixed
❯ git checkout v0.0.18
HEAD is now at 2b78b39 Merge branch 'main' of github.com:refaktor/rye into scriptloc
❯ go build
go: downloading golang.org/x/term v0.17.0
go: downloading golang.org/x/crypto v0.20.0
go: downloading github.com/refaktor/liner v1.2.6
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading golang.org/x/sys v0.17.0
❯ ./rye -do 'print "hello"'
Welcome to Rye console. Use ls for current or lsp or lsp\ "prin" to list parent context.
×> ^C
from rye.
I think this will simply be solved when the next release is out
from rye.
@booniepepper Yes, I've checker. v0.0.18 accepted -do flag, but only after accepting a file or dot ".", so after it loaded some file. After 18 I added option that -do flag also works with no input files. But I've merger your PR and made v0.0.19 release and I get this ... as I said, I rarely use Docker, so there is probably something I don't understand:
[:. Linux terminal .:] docdoc': docker run ghcr.io/refaktor/rye -do "print 123 + 123"
2024/04/24 20:09:58 open -do: no such file or directory
[:. Linux terminal .:] docker run ghcr.io/refaktor/rye:latesrye:latest -do "print 123 + 123"
2024/04/24 20:10:01 open -do: no such file or directory
[:. Linux terminal .:] docker run ghcr.io/refaktor/rye@sha256:e73d6d8a7c66dd65e578271e1fc4e625e992108b748f3103cc748dab034e6dfd -do "print 123 + 123"
246
from rye.
Hmm... it seems to works for me right now
$ docker run --rm ghcr.io/refaktor/rye -do '"hello" |print'
Unable to find image 'ghcr.io/refaktor/rye:latest' locally
latest: Pulling from refaktor/rye
50967c6354e2: Pull complete
250c06f7c38e: Pull complete
01948aa61ab5: Pull complete
Digest: sha256:e73d6d8a7c66dd65e578271e1fc4e625e992108b748f3103cc748dab034e6dfd
Status: Downloaded newer image for ghcr.io/refaktor/rye:latest
hello
$ docker run --rm ghcr.io/refaktor/rye -do 'print 123 + 123'
246
from rye.
Also working for me with the 0.0.19
tag explicitly:
docker run ghcr.io/refaktor/rye:0.0.19 -do 'print 123 + 123'
Unable to find image 'ghcr.io/refaktor/rye:0.0.19' locally
0.0.19: Pulling from refaktor/rye
Digest: sha256:e73d6d8a7c66dd65e578271e1fc4e625e992108b748f3103cc748dab034e6dfd
Status: Downloaded newer image for ghcr.io/refaktor/rye:0.0.19
246
from rye.
I might chalk up the errors you're seeing to something like locally cached containers/images from previous versions. Docker leaves... a lot to be cleaned up
from rye.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rye.