-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push RPM to Copr? #1800
Comments
This is a great idea, but I would prefer to add support for this to the build tool that chezmoi uses so that other projects can benefit. See https://github.com/goreleaser/goreleaser/issues/2804 for details. |
Another solution to this might be to create a flatpak, that way it could be installed on any distribution, that has flatpak. It's not uncommon for commandline tools to have flatpaks, two examples being NeoVim and MPV. One of the things I like about flatpaks is they can be installed "per user". ie |
Note that if you have installed chezmoi using an rpm package then the
I had a look at build at flatpak of chezmoi, but:
I'll add support for flatpak if/when it gets added to goreleaser/nfpm. |
That generally won't work though for immutable operating systems like Silverblue, microos. For Silverblue you want to do In this case I thought about using Toolbox, but the issue seems to be changing the hostname from "toolbox" to that of the host containers/toolbox#98. I thought about using a podman container, but had other issues doing that containers/podman-compose#395 I suppose an alternative solution might be to not use
People generally have aliases so they don't need to write
|
This is slightly off-topic, but I'm on Fedora and I'm using Homebrew to install Chezmoi, so I want to mention that as a workaround. https://docs.brew.sh/Homebrew-on-Linux It's slightly annoying to bootstrap your Chezmoi setup if you have to install Homebrew first, but I'm not sure how much more annoying it is than adding an additional Copr repo. |
If you know anything about writing source RPMs and |
FWIW I have recently submitted the package review for Chezmoi into Fedora here: https://bugzilla.redhat.com/show_bug.cgi?id=2130734 This is still at least a few weeks away as there's a couple more deps needed to be packaged. |
@anthr76, is there an update on this? |
I think this is the way. |
Not really. Flatpak in its current form seems to be incompatible with chezmoi. Please discuss in #4168. |
I come back to this later, at first sight, most (if not all) of your dependencies are already available in flatpak runtimes. I'm working on a gui for chezmoi. However it will take time, weeks if not months, it's the first app I develop so it's all quite new to me, I'm not even a professional developer. Flatpak is an excellent way to publish a gui so I'll also have to flatpak chezmoi. That's the reason I arrived on this thread, as I was checking if it already exists. |
That's not the issue, though. The issue is that chezmoi relies heavily on being able to
This won't work. You can make a Flatpak of chezmoi, but chezmoi in Flatpak won't work. |
I depend on running chezmoi with with |
You can Flathub doesn't like this permission, though, since spawning arbitrary processes on the host renders the sandbox useless. If the range of tools to use is not large, it's also possible to package the most common ones into the flatpak. Anything more advanced would require the user to explicitly enable this permission, which I think is a good compromise because most users won't need neovim along with chezmoi. This is the solution I used when packaging yazi. It was not a fun experience building 10 dependencies along with the main executable, but the resulting program works for 90% of its use cases, with manual tweaking necessary for the rest. As for XDG directories, you need additional filesystem permissions for those. Granting access to I can definitely see a way for chezmoi to be packaged into a flatpak, but the sandboxing would make it very difficult: Flatpak was not designed for CLI applications that need to read/write files on the host. |
Is your feature request related to a problem? Please describe.
Redhat has a service called Copr https://copr.fedorainfracloud.org/coprs/ (they are like Ubuntu PPAs).
Describe the solution you'd like
It would be nice if there was an official repository. The Neomutt project has one for example.
This would mean Redhat users would automatically have the latest Chezmoi instead of manually having to download the RPM or make their own repository.
The text was updated successfully, but these errors were encountered: