Commit Graph

214 Commits

Author SHA1 Message Date
Funky185540
72ee6598a6 Upgrade podman/docker containers (#850)
* containers: Pull newer versions of containers

Allows topgrade to update a users containers. It will automatically skip
containers which come from the `localhost` repo as these are self-built.
Respects the version number the containers were initially checked out
with in order not to introduce semver-breaking changes.

Works with podman and docker.

* topgrade: Add 'containers' step

* containers: Ignore some errors for docker

This patch is needed to achieve compatibility between docker and podman.
In particular, docker doesn't store/tell the user from which repository
(i.e. `hub.docker.com`, or `registry.fedoraproject.org`) a container
originates. This has the side-effect, that self-built containers cannot
be distinguished from publicly available containers. Therefore this
patch introduces an exception to the error handling when pulling, by
scanning the output of the `docker pull` command. If it finds the
`registry does not exist` substring in the output, it will skip the
container but **NOT** consider the whole update step failed.

* containers: Skip '<none>' containers

that result from either intermediate products of a container build or
when images are dangling.

* steps: containers: simplify error handling

And don't return errors from within the "unknown container registry"
handling, since that would immediately terminate the whole update which
isn't intended.
2022-03-05 22:00:07 +02:00
Roey Darwish Dror
cea32020ce Disable winget by default 2022-03-05 21:58:36 +02:00
Leonardo Eugênio
0251c2769b Support for updating kakoune plugins with kak-plug (#852) 2022-02-06 23:48:06 +02:00
Roey Darwish Dror
5e7453b387 Make ConfigUpdate an individual step (fix #843) 2022-01-26 22:52:52 +02:00
Funky185540
da8cf9da05 Enable updating Toolbx through topgrade (#830)
* steps: toolbox: Add module to upgrade toolboxes

This adds a module to upgrade all toolboxes found on a host system.
[Toolbox][1] (More recently: `toolbx`) is a tool that easily provides
mutable, containerized command line environments. It is a means to work
and develop in a mutable environment on immutable operating systems such
as Fedora Silverblue, CoreOS, Kinoite and much more. However, it is not
limited to these use cases.

The integration into topgrade works as follows: Toolbx makes many of the
hosts folders available form inside the toolbx container by default. In
particular, all of the hosts filesystem is mapped under `/run/host`. This
module exploits this fact by:

- Gathering a list of toolboxes available on the host that runs
  `topgrade`
- Executing `toolbox run` for each of these toolboxes to run a command
  inside the toolboxes, **using the executing `topgrade` executable with
  the `--only system` arguments**

[1]: https://containertoolbx.org/

* toolbx: Integrate toolbx into the application

* Toolbx is Linux specific

Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
2022-01-24 12:10:21 +02:00
Quinton Cloutier
51b35b374c Re-add the Go step via go-global-update (#823)
* Re-add the Go step via go-global-update

go-global-update (https://github.com/Gelio/go-global-update) is a small
tool to update all executables installed in a user's GOBIN, effectively
providing a `go get -u all` replacement for Go 1.16+.

Since it appears that Go will not be receiving a built-in way to do this
in the near future, this could be a good option in the meantime.

* Skip silently if go-global-update is not present
2022-01-16 22:24:57 +02:00
Roey Darwish Dror
54741ff899 Conda (fix #829) (#832) 2022-01-15 06:50:42 +02:00
Roey Darwish Dror
7d42ba4e52 Remove pacdiff 2021-12-18 20:39:57 +02:00
Roey Darwish Dror
1f3d8d39a0 Fix breakage 2021-12-12 13:52:07 +02:00
Roey Darwish Dror
ab3ff0ecae Selective yes (fix #802) (#808)
* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS
2021-12-06 14:44:20 +02:00
Roey Darwish Dror
942702d1d2 Merge the command line and the configuration flags of --only and --disable (fix #805) (#806)
* Merge the command line and the configuration flags of --only and --disable (fix #805)

* Fix
2021-12-06 14:12:20 +02:00
Roey Darwish Dror
e9d809ddb0 Avoid running remote topgrade on the current host (fix #804) (#807) 2021-12-06 13:31:05 +02:00
M*C*O
329df4f406 Add Support for Spicetify (#798) 2021-11-15 08:09:02 +02:00
Manuel Hässig
f70305adcb Add new step pacdiff (#796) 2021-11-06 20:55:38 +02:00
Roey Darwish Dror
23c9908a6a Add an option to force vim plug update (#795)
* Add an option to force vim plug update (fix #751)

* Rustfmt

* Update src/config.rs

Co-authored-by: M*C*O <mcofficer@gmx.de>

Co-authored-by: M*C*O <mcofficer@gmx.de>
2021-11-06 06:06:10 +02:00
Roey Darwish Dror
0467bd4dde Add a flag to disable showing Arch Linux news (fix #786) 2021-10-29 09:53:30 +03:00
Roey Darwish Dror
539b267eef Support rust 1.51.0 (#789) 2021-10-28 22:05:35 +03:00
M*C*O
271b250b51 config: ArchPackageManager should be snake_case (#784)
* config: ArchPackageManager should be snake_case

* Remove unnecessary strum macro

* Add arch_package_manager to config.example.toml
2021-10-28 19:46:59 +03:00
Roey Darwish Dror
fb18af12ac Aur helper (#776)
* Arch Refactor

* Clippy
2021-10-25 22:03:57 +03:00
Andrea Tupini
6eb4cdd224 Add step to update haxelib packages (#774) 2021-10-25 21:54:27 +03:00
Roey Darwish Dror
9023942a85 Pacstall (fix #764) (#769) 2021-10-25 21:33:58 +03:00
Roey Darwish Dror
b6c468c6fb Upgrade gnome shell extensions (fix #755) (#768) 2021-10-25 21:31:13 +03:00
Marcin Puc
1478d079ca Add minor refactorings (#754) 2021-09-04 21:01:19 +03:00
Roey Darwish Dror
a39b4f846c Remove redundant dereferences 2021-09-02 07:27:09 +03:00
Roey Darwish Dror
611f69646e Support pkgin (fix #748) 2021-09-02 06:14:56 +03:00
Roey Darwish Dror
989aa053e2 Add a flag to disable pnpm (fix #743) 2021-07-19 09:43:28 +03:00
Philipp Weißmann
2c348090b7 Adds support for chezmoi (#744) 2021-07-19 08:29:34 +03:00
Eberhard Beilharz
2cd1ea6845 Allow to run flatpak update with sudo (#738)
This change adds the option `flatpak.use_sudo` that allows to update
the system-wide installation with sudo. When set to `true` the
system-wide installation will be updated with sudo. If set to `false`
(default) the update will be run as regular user.

This solves the problem where running `flatpak update` on a remote
system fails if run as regular user.

Fixes #737.
2021-06-30 13:37:41 +03:00
Eberhard Beilharz
74292ef6d2 Make firmware upgrade configurable (#739)
This change adds an option, firmware.upgrade, that if set to `false`
only checks for and displays available firmware updates. If set to `true`
(default) the user is offered to run the firmware upgrade.
2021-06-30 12:15:18 +03:00
Roey Darwish Dror
f39899c3ff Allow running NPM as sudo (fix #690) (#723)
* Allow running NPM as sudo (fix #690)

* asd

* fix
2021-06-09 10:52:48 +03:00
Roey Darwish Dror
9205649a5f Support winget (fix #721) (#722) 2021-06-03 13:08:17 +03:00
Marcos Nils
c53d2f489a Add bin support (#717) 2021-05-29 07:59:27 +03:00
Roey Darwish Dror
cdc7c39d02 Add silnite support (fix #701) (#714) 2021-05-29 07:54:15 +03:00
Kevin K
2bed7edaba makes rpm-ostree configurable (#712)
This commit makes it possible to *not* to use `rpm-ostree` even on
systems where it is detected.

This commit is fully backwards compatible with previous releases, and
without changing the config file all previous behaviors are the exact
same.

This commit adds the `rpm_ostree` field in the `[linux]` table of the
configuration, and defaults to `true`. This means Topgrade will first
check if `/usr/bin/rpm-ostree` exists, and only if so then check if the
user does not want to use `rpm-ostree` via the configuration. If the
user *does not* want to use `rpm-ostree`, then normal operation
continues checking for DNF or YUM.

This makes it possible for people where `rpm-ostree` is installed, but
where the system is not an `ostree` based distribtuion. This happens
when people are using things like `osbuild-composer` to build images,
or Cockpit with the Compose feature enabled (which uses
`osbuild-composer` internally).

An alternative to this commit would be to make the config field a
negative such as `no_rpm_ostree`, however that goes against the norm in
other fields.

Closes #710
2021-05-13 21:57:29 +03:00
Roey Darwish Dror
f2e5ceb852 Change MacPorts to a single word (fix #703) 2021-05-04 11:27:19 +03:00
Roey Darwish Dror
3e9bd9bc0f Remove msupdate (fix #698) (#699)
* Remove msupdate (fix #698)

* Unused imports
2021-04-28 10:55:54 +03:00
Roey Darwish Dror
cf63db2786 Remove Microsoft store (fix #674) 2021-04-23 07:01:11 +03:00
Roey Darwish Dror
0490bd70a2 Remove vscode 2021-04-23 07:01:11 +03:00
Roey Darwish Dror
a6d7c6dca9 Apt arguments (fix #669) 2021-04-06 10:54:23 +03:00
Roey Darwish Dror
fa8334d776 Make a specific flag for Mas (fix #681) 2021-04-06 09:52:55 +03:00
Seλçuk Öztürk
bf986e313c Racket package manager support (#667) 2021-03-14 12:12:38 +02:00
Alex
8bf3d70e5f Support for PIP3 (self update) (#663) 2021-03-02 11:39:49 +02:00
Akeshihiro
09673297db Drop the Go step (#660)
* Drop the Go step

With the release of Go 1.16 the behavior of `go get` has been changed.
In previous Go versions `go get` was used not only to add module
dependencies but also to install Go tools.
As of Go 1.16 `go get` can only add and upgrade module dependencies.
To install Go tools now the `go install` command has to be used.

Further on Go 1.16 enabled the GOMODULE mode by default and will drop
the GOPATH mode completly in Go 1.17.
So the package definition `all` like in `go get -u all` does not work
anymore if the PWD is outside of a Go module project.
Because of this `go list all` also does not work for the same reason.
That being said it seems that currently there is no way to get a list of
all installed Go tools or packages at the GOPATH level.

So the only possible solution to determine the installed Go tools and
also to update them would be by inspecting the `go env GOBIN` directory
as well as the `go env GOMODCACHE` sub-directories and to filter the
results according to their possible name-to-package boundaries.
As this approach seems to be very ugly and also not to be very safe or
stable and Go currently does not support any kind of automated upgrades
of installed Go tools it is best to drop the Go step for now until Go
implements some kind of Go tool upgrade feature.

Fixes #659

* Remove Go from Step enum
2021-02-24 12:17:03 +02:00
Roey Darwish Dror
593ff0a9bc Support VSCodium (Fix #637) (#639) 2021-02-22 13:01:33 +02:00
Roey Darwish Dror
64b2f08702 Fix improper sorting 2021-02-19 06:43:13 +02:00
Roey Darwish Dror
c9aecda2ca Fix vscode enum key (fix #645) 2021-02-19 06:42:23 +02:00
Roey Darwish Dror
4fe3c257b6 Fixed Microsoft Store terminology 2021-02-18 14:20:30 +02:00
Roey Darwish Dror
bb3a9347c9 Fossil support (#636) 2021-02-17 16:46:29 +02:00
M*C*O
513ffb8f22 Add support for the micro text editor (#635) 2021-02-15 21:43:36 +02:00
Alex
878cad5c80 added support for Visual Studio Code (VSC) extension update (#628) 2021-02-13 06:35:20 +02:00