Comments (7)
I went through documentation of Meson and there is a way to set
configuration options (the link is here).
But the expected way to use this mechanic is to feed it an input
config and then use the created config. If we want to use this we
need to make toolbox.sh read this kind of data from a separate config
file. Do we want that??
That would require having to build the final shell script from a toolbox.in
, wouldn't it?
I think this is another of those things that are best addressed during the rewrite in Go, when we'd have to build the final binary from the sources anyway. The only positive aspect of a shell script is that it's self-contained and can be run straight out of the Git tree, without having to build it and so on. Let's not lose that.
from toolbox.
A --version
flag is a reasonable thing to expect, and one would expect it to be easy. However, I can't think of a way to do this that:
-
Doesn't require building the final shell script from a
toolbox.in
to fill in the version number. -
Doesn't require installing a second snippet with the version information that's sourced by the main script at run-time.
As archaic as shell scripts are, the ability to have a single self-contained file that can be run without an intermediate step is one of the more endearing aspects of it. It would be nice to not lose that.
Or maybe I am not being imaginative enough? :/
from toolbox.
I neither use Meson nor sh scripts, but can’t this be solved by an environment variable defined at the top, and maybe be fed via Meson?
from toolbox.
Umm... who will feed them in? Note that it has to work both for the (a) running straight out of Git or ./toolbox
case, (b) built and installed, possibly via a distribution package, case.
from toolbox.
I think I would just add constants to that scripts. But I must say that I do not have an idea of shell scripts at all. :/
from toolbox.
I went through documentation of Meson and there is a way to set configuration options (the link is here). But the expected way to use this mechanic is to feed it an input config and then use the created config. If we want to use this we need to make toolbox.sh read this kind of data from a separate config file. Do we want that??
from toolbox.
Toolbox has now been rewritten in Go by @HarryMichal , and the Go version offers a --version
flag.
from toolbox.
Related Issues (20)
- Failed to initialize container, AGAIN (Silverblue 39.20240408.0 (2024-04-08T01:47:01Z) HOT 2
- Build succeeded.
- List supported toolbox images
- Cannot access mounted drive with fuse outside of toolbox
- Xwayland broken in toolbox containers HOT 1
- Add distribution: Ubuntu 24.04 LTS HOT 2
- can't start ubuntu (useradd: UID is not unique) HOT 1
- systemd (255.6-1) breaks dependency
- Missing locales on Arch Linux guest HOT 3
- Can't resolve host `toolbox` inside `fedora-toolbox:40` container HOT 4
- Isolate $HOME directory via snapshot and overlay
- Can't enter fedora 40 toolbx: Failed to bind /etc/machine-id HOT 24
- run0 Allows execution on HOT 6
- Gstreamer unable to find plugins in toolbox
- Fish Shell Completions
- toolbox can't source path HOT 2
- Unable to run fzf through flatpak-spawn
- Fedora 39 Image doesn't build
- profile.d/toolbox.sh doesn't take into account TERMINFO_DIRS HOT 3
- Cannot get terminal window size inside toolbox via TIOCGWINSZ ioctl
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 toolbox.