Commit Graph

548 Commits

Author SHA1 Message Date
DottoDev
057fc3b533 Add step for updating Julia packages (#2)
* Add step for updating julia packages

* Appease clippy

Authored-by: Jules Bertholet <julesbertholet@quoi.xyz>
Approved-by: Thomas Schönauer <t.schoenauer@hgs-wt.at>
2022-10-10 18:29:56 +00:00
DottoDev
5dffa2c6cc Add new step: GNU Guix by JamesClarke7283 (#1)
* Added new step: guix (basic support)

* Fixed clippy errors and better practice, Thanks To guidence from @enchant97 <Leo Spratt>

* Removed accidental swp file, as pointed out by @strangelittlemonkey in pull request #982

Authored-by: James Clarke <james@james-clarke.ynh.fr>
Approved-by: Thomas Schönauer <t.schoenauer@hgs-wt.at>
2022-10-10 18:03:34 +00:00
Quinton Cloutier
f390f2edbe Ensure selfupdate is enabled for SDKMAN! (#954)
* Ensure `selfupdate` is enabled for SDKMAN!

This subcommand is unavailable when the `sdkman_selfupdate_feature`
option is disabled, as is the case when SDKMAN! is installed via
Homebrew.

https://github.com/sdkman/sdkman-cli/pull/1042

* Fix macOS build; simplify

Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
2022-06-18 11:29:37 +00:00
Amrit Rathie
d864199c67 Add Pamac support (#953) 2022-06-18 14:22:23 +03:00
Roey Darwish Dror
4e6f48caef Sparkle for updates (#950) 2022-06-17 11:10:21 +03:00
Mark Nefedov
4a7de60e59 npm/cli 8.11.0 deprecated -g flags (#949) 2022-06-02 08:28:20 +00:00
Roey Darwish Dror
abdd1db349 Don't try to update devcontainers (#946) 2022-05-27 12:50:40 +00:00
Roey Darwish Dror
258515620f Stop using packages.el (#942)
Fixes #757
2022-05-26 20:52:32 +00:00
Roey Darwish Dror
85f96647a4 Don't make pnpm a seperate step (#944)
Fixes #938
2022-05-26 17:32:26 +00:00
Roey Darwish Dror
23201065c6 Stop checking ZPFX (#943)
Fixes #935
2022-05-26 17:03:12 +00:00
Roey Darwish Dror
c9161687d5 Trim go paths (#940)
Fixes #937
2022-05-24 06:30:23 +00:00
Thom Wiggers
29644d6ffa [vim] Update Coc plugins (#934) 2022-05-18 11:33:23 +00:00
Roey Darwish Dror
dcf58911bd Mac OS fails to upgrade Homebrew in custom location (#930)
Fixes #673
2022-05-13 17:59:13 +00:00
Roey Darwish Dror
1e25926999 Replace the apt step with nala if installed. (#914) 2022-05-09 06:44:39 +03:00
Roey Darwish Dror
fdf03f6548 Support deb-get (#925) 2022-05-07 06:14:20 +00:00
Roey Darwish Dror
84c3a0f4d1 Don't try to upgrade nix if it's not a part of a profile (#924) 2022-05-07 02:24:54 +03:00
morero
08e8b56b75 Add: Add new zsh plugin "zi" (#921) 2022-05-06 15:37:28 +00:00
Roey Darwish Dror
5d168bbf0d pip should be executed via the regular python executable (#913)
Fixes #910
2022-05-01 17:47:14 +00:00
Roey Darwish Dror
336f529410 "Ultimate vimrc" support (#904)
* "Ultimate vimrc" support
Fixes #856

* Fix

* fix
2022-04-23 12:39:58 +00:00
Roey Darwish Dror
14809322b4 Vagrant boxes (#905) 2022-04-23 12:09:54 +00:00
GPery
1a18174693 Add pikaur support (#898) 2022-04-22 23:28:01 +03:00
Aditya Alok
ff7a4f3df9 Fix building for Android, enable tlmgr updates (#896)
* fix(os/unix): cannot find `SkipStep` while building for android

ERROR: cannot find function, tuple struct or tuple variant `SkipStep`

Disable updating gnome extensions for Android.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>

* feat: enable `tlmgr` updates for android

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-22 23:20:17 +03:00
Roey Darwish Dror
d0e1212700 Don't run gnome shell extensions if unneeded (fix #835) (#893)
* Don't call gnome shell extensions if it's not registered in dbus (fix #835)

* fix

* Execute-elevated (#892)

* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import

* No gnome in macOS

* Unused imports
2022-04-11 20:15:18 +03:00
Roey Darwish Dror
5ecf8300ef Execute-elevated (#892)
* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import
2022-04-09 16:29:55 +03:00
Roey Darwish Dror
5de33a91d1 Detect fisher in a custom path (fix #878) 2022-04-09 15:35:02 +03:00
Roey Darwish Dror
5166f651ea Don't fail if there are no Github extensions (fix #877) 2022-03-29 03:43:13 +03:00
Roey Darwish Dror
8dd2eb7532 Remove silnite (fix #873) 2022-03-29 03:18:03 +03:00
Sagi Sarussi
99645b132a images -> image ls
Use the same format for all `docker image` commands
2022-03-27 20:04:50 +03:00
Armel Soro
ca4ffac6fb Add support for upgrading GitHub CLI Extensions 2022-03-23 22:31:58 +02:00
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
Sven Hergenhahn
afa3171d99 Add zgenom zsh plugin manager (#862)
- add the required functionality for zgenom
 - fix the env::var for zinit - it should be ZINIT_HOME, not ZBXF, as
   this is also set in zgenom, but makes topgrade fail when zinit is not
   installed

Co-authored-by: Sven Hergenhahn <sven.hergenhahn@dm.de>
2022-03-05 22:00:07 +02:00
Roey Darwish Dror
cea32020ce Disable winget by default 2022-03-05 21:58:36 +02:00
Funky185540
547df8d346 vim: Support updating dein (#857)
`dein` is a plugin manager for vim, which was supported for a while in
an earlier version of topgrade. This patch reintroduces support for
upgrading "plain" `dein`, rather that the `dein` UI which is invoked by
`DeinUpdate` in vim.
2022-02-13 08:08:36 +02:00
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