Commit Graph

415 Commits

Author SHA1 Message Date
Roey Darwish Dror
4230388017 Support multiple WSL distributions (fix #855) (#858) 2022-02-13 08:08:18 +02:00
Leonardo Eugênio
0251c2769b Support for updating kakoune plugins with kak-plug (#852) 2022-02-06 23:48:06 +02:00
Leonardo Eugênio
54e3d87b23 Support yes flag for Void (#851) 2022-02-06 23:47:52 +02:00
Roey Darwish Dror
d43b6293b6 Make clippy happy 2022-02-06 20:49:29 +02:00
Funky185540
d15bc32614 linux: Ignore "--yes" for rpm-ostree upgrade (#849)
Previously when performing the "system" upgrade step, rpm-ostree would
be passed a "--yes" argument when it was configured in topgrade.
However, this is not an option available for rpm-ostree, so it would
cause an error and abort execution of the updates.
2022-02-01 12:46:27 +02:00
Roey Darwish Dror
5e7453b387 Make ConfigUpdate an individual step (fix #843) 2022-01-26 22:52:52 +02:00
Roey Darwish Dror
5f4dd33f1f Don't run pacdiff when --yes is specified (fix #846) 2022-01-26 22:51:00 +02:00
Macavirus
6b09212814 Fix typo (#845) 2022-01-26 22:21:35 +02:00
Roey Darwish Dror
0525e5aac3 Do not run Conda if auto_activate_base is set to False (#841) 2022-01-24 22:05:52 +02:00
Roey Darwish Dror
63f4e01650 Preserve DIFFPROG when running Pacdiff in sudo (fix #842) 2022-01-24 20:32:48 +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
f21ba9d495 Don't print the NPM separator if the step is skipped (fix #831) 2022-01-14 22:46:10 +02:00
Roey Darwish Dror
b34cc1b0f8 Add a seperator to pacstall (fix #826) 2022-01-06 21:41:36 +02:00
Roey Darwish Dror
ff9072f7b1 Don't panic when cannot detect the arch package manager (fix #818) 2022-01-06 06:27:44 +02:00
Aroun
fb0d726703 fix: pacstall should run without yay arguments (#824)
fix: pacstall should run without yay arguments

Co-authored-by: Zahrun <Zahrun@github.com>
2022-01-06 05:44:37 +02:00
Roey Darwish Dror
0c5b8099cb Pass -Force instead of -Confirm to powershell update (fix #825) 2022-01-06 05:35:40 +02:00
Funky185540
81fb880155 Linux: System: Fix rpm-ostree detection (#816)
On a rpm-ostree based system, topgrade would previously fail to detect
the rpm-ostree executable and fall back to yum instead, which isn't
available. This was caused by constructing a Path instance with
`Path::new`, rather than querying the underlying OS for a path to the
rpm-ostree executable.

Make the `system` update step use `which` to determine if an executable
called "rpm-ostree" is available on the system and get the correct path
to the executable.
2021-12-26 11:42:09 +02:00
Roey Darwish Dror
3f12cf11f6 Unify pacdiff and etc-update 2021-12-18 20:20:00 +02:00
Roey Darwish Dror
2c7dfb66c5 Remove obsolete struct (fix #812) 2021-12-18 20:14:00 +02:00
Roey Darwish Dror
e769baaaca pacdiff needs vim 2021-12-15 21:49:03 +02:00
Laurent le Beau-Martin
1c24014178 Fix build for Android (#809) 2021-12-13 23:04:21 +02:00
Roey Darwish Dror
4716cb7c94 Add Bedrock Linux support (fix #745) (#747)
* Bedrock Linux (fix #745)

* Add more distributions

* fix

* fix

* Fix

* Merge

* Move pacnew to the correct location

* Version bump

* Correct spelling for GNOME Shell extensions update (#778)

* fix gnome shell extensions update object path (#788)

* 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

* Add release pipeline

* Run GNOME update only when using GNOME

* Delete travis file and appveyor

* Bump

* Support rust 1.51.0 (#789)

* Cross compilation

* Bump

* fix: GNOME detection for customized version (#790)

Signed-off-by: Noel Georgi <git@frezbo.dev>

* Add a flag to disable showing Arch Linux news (fix #786)

* Bump

* Update pacstall (fix #769)

* 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>

* Add new step pacdiff (#796)

* Add Support for Spicetify (#798)

* Look for ~/.config/emacs directory in Windows (fix #766)

* Pass --force to doom when -y is set (fix #799)

* Implement cleanup for flatpak (#801)

* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext

* Improve man page (#803)

Wordings & argument format

* Avoid running remote topgrade on the current host (fix #804) (#807)

* 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

* Fix rust requirement in the readme

* Selective yes (fix #802) (#808)

* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS

* Fix bedrock detection

* Bedrock fixes

* format

* Fedora fixes

Co-authored-by: Björn Daase <bjoern.daase@gmail.com>
Co-authored-by: modularTaco <37046961+modularTaco@users.noreply.github.com>
Co-authored-by: M*C*O <mcofficer@gmx.de>
Co-authored-by: Noel Georgi <git@frezbo.dev>
Co-authored-by: Manuel Hässig <mhaessig@users.noreply.github.com>
Co-authored-by: Janek <27jf@pm.me>
2021-12-09 15:16:42 +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
M*C*O
8fb8927fea Implement cleanup for flatpak (#801)
* Cleanup flatpak

* Fix compile error

* Make sure we only move our values at the very end

* Access config.cleanup() through ExecutionContext
2021-11-20 15:32:20 +02:00
Roey Darwish Dror
1db6dc5470 Pass --force to doom when -y is set (fix #799) 2021-11-18 20:45:34 +02:00
Roey Darwish Dror
d01a3a2c9d Look for ~/.config/emacs directory in Windows (fix #766) 2021-11-18 08:49:16 +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
d002b1ab1a Update pacstall (fix #769) 2021-11-01 09:11:01 +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
Noel Georgi
f235c56b82 fix: GNOME detection for customized version (#790)
Signed-off-by: Noel Georgi <git@frezbo.dev>
2021-10-29 09:47:43 +03:00
Roey Darwish Dror
539b267eef Support rust 1.51.0 (#789) 2021-10-28 22:05:35 +03:00
Roey Darwish Dror
850dbb4037 Run GNOME update only when using GNOME 2021-10-28 21:24:14 +03:00
modularTaco
338c9f431d fix gnome shell extensions update object path (#788) 2021-10-28 19:45:53 +03:00
Björn Daase
bff66f1212 Correct spelling for GNOME Shell extensions update (#778) 2021-10-26 09:29:55 +03:00
Roey Darwish Dror
897b3094d8 Move pacnew to the correct location 2021-10-25 22:53:53 +03:00
Roey Darwish Dror
58491c4f8a Support sudo with pnpm (fix #759) (#772)
* Support sudo with pnpm

* Clippy

* format

* Clippy

* Clippy
2021-10-25 22:27:35 +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
Roey Darwish Dror
fab8f1a9f1 Support PureOS (fix #753) (#771) 2021-10-15 06:15:38 +03:00
Sean McAvoy
84ad4dbeb4 add id_like for alpine (#767)
tested to work with:
postmarketOS: https://postmarketos.org
should work with:
Adelielinux Linux: https://www.adelielinux.org
2021-10-14 12:23:39 +03:00
Marcin Puc
1478d079ca Add minor refactorings (#754) 2021-09-04 21:01:19 +03:00
Roey Darwish Dror
7db0c03621 Refactor Linux 2021-09-02 17:09:48 +00:00
Laurent le Beau-Martin
ebb66e26a4 Add Android support (#749) 2021-09-02 19:54:31 +03:00
Marcin Puc
ad4648655f Skip deno upgrade unless installed under .deno (#750)
* Skip deno upgrade unless installed under .deno

* Use base_dirs from execution context
2021-09-02 19:53:48 +03:00