steven-omaha
b9fb617214
fix(cmd): show full command on error
2024-04-06 18:42:29 +02:00
steven-omaha
675b06352d
refact(rustup): add run_external_command
2024-04-06 18:32:37 +02:00
steven-omaha
1d5f3d5232
chore: Release
2024-04-05 09:30:03 +02:00
steven-omaha
0e4bd99a5a
feat(void): add void Linux backend
...
PR #69
2024-04-05 08:53:34 +02:00
Samuel Talbot
891830049b
remove unused import
2024-04-05 08:52:21 +13:00
Samuel Talbot
dbb14eb5b5
resolve issues
2024-04-05 08:43:57 +13:00
Samuel Talbot
fd1ba3ff2a
fix package info
2024-04-05 08:01:09 +13:00
Dan Bluhm Hansen
45af4a251e
get .crates2.json from $CARGO_HOME if present
2024-04-04 19:35:40 +02:00
steven-omaha
8cc5365070
refact(rustup): rework most of the code
2024-04-04 17:10:14 +02:00
Samuel Talbot
1db032dd5c
clippy and formatting
2024-04-04 19:53:29 +13:00
Book-reader
cf64bb0f72
improve regex and comment regex
2024-04-04 18:59:06 +13:00
Book-reader
f947b8e56a
add void backend
2024-04-04 17:34:46 +13:00
steven-omaha
ceaccc8748
style(rustup): add empty lines
2024-04-03 17:51:13 +02:00
steven-omaha
99210e8599
refact(rustup): add todo
2024-04-03 17:50:56 +02:00
steven-omaha
98e6e7f2c6
refact(rustup): remove unused mut
2024-04-03 17:47:58 +02:00
steven-omaha
5f6384b6b3
refact(rustup): get_all_installed_packages
2024-04-03 17:46:34 +02:00
steven-omaha
937efc3782
refact(rustup): make_dependency panic
...
calling this would be a programming error, therefore a panic is warranted
2024-04-03 17:42:57 +02:00
innocentzero
a5a0765928
fix(rustup): Fix individual component uninstall
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 17:36:00 +05:30
innocentzero
75709a7ed9
refact(rustup): Use match statements and bail
...
Use match statements for Option types and use bail! macro to utilize
recoverable errors.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:58:19 +05:30
innocentzero
fd47659959
refact(rustup): Use bail instead of panic
...
Use anyhow::bail to return an Err type instead of panicking and exiting
the program.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
6f92e66777
refact(rustup): Use RepoType instead of strings
...
Use RepoType enums instead of strings to match in various places.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
fc83c43997
refact(packaging): remove unused function
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
0c731fa54b
refact(rustup): Apply clippy suggestions
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
ff25f2f55d
refact(rustup): Refactor component installation
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
c03baf221f
refact(rustup): change methods to functions
...
Remove the methods that don't require access to the backend into
separate functions rather than have them as methods.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
a963d6a2db
refact(rustup): Remove clippy warnings
...
Clippy warnings were not enabled at the time of the previous commits.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
c7596f62b7
refact(rustup): Use anyhow::Error
...
Remove repeated instances of anyhow::Error and make the code sparser.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
4e2ef50df7
fix(rustup): remove standalone components
...
This patch targets the removal of standalone components that are not
removed as a part of a toolchain. This was previously ignored.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
97b4077b02
feat(rustup): Remove packages
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
f9528241e7
refact(rustup): Refector install_packages
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
fbedd6da49
feat(rustup): install packages
...
Rustup is now able to install toolchains and
components and works with multiple toolchains and
components for each toolchain.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
ea2c51620a
refact(rustup): fetch installed toolchains and components
...
Refactor the functions used for fetching installed
components and toolchains.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
d4551a6a2b
feat(rustup): add rustup as a module
2024-04-02 04:51:15 +05:30
innocentzero
1ad93cec96
refact(package.rs): Expose repo field publicly
...
Expose repo field publicly for install_packages in
rustup backend to utilize, otherwise very ugly
hacks need to be used to handle toolchains and
components.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
innocentzero
ccd108591f
feat(rustup): Add rustup as a backend
...
Adds rustup as a backend for pacdef. Only works on
components listed for now.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-04-02 04:51:15 +05:30
steven-omaha
3f8468c660
fix(debian): build against rust-apt-0.7.0
...
1bcb7f8 bumped rust-apt from 0.5 to 0.7. This change made
Cache::packages(&self, &sort) a fallible function. The required change in
the Debian backend was missed.
This commit propagates the error in get_all_installed_packages and
get_explicitly_installed_packages for the Debian backend.
Fixes #64 .
2024-03-26 14:22:00 +01:00
steven-omaha
4b7a497dda
fix(review): typo
2024-03-24 20:57:32 +01:00
Mike Lloyd
ad624bce70
Add 'apply' option to review
2024-03-23 23:34:36 -07:00
star-szr
e1354438bb
fix: minor typo in review text
2024-03-21 12:05:07 -04:00
steven-omaha
52f615324a
chore: Release
2024-03-20 11:32:29 +01:00
steven-omaha
1bcb7f80cd
chore(release): bump dependencies, update lockfile
2024-03-20 11:30:08 +01:00
steven-omaha
489074a897
chore: Release
2024-02-15 12:05:14 +01:00
innocentzero
e7a10cc0ec
fix(python): panic on empty pip_binary in config
...
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-02-15 12:58:50 +05:30
steven-omaha
82bf880849
chore: Release
2024-01-28 08:18:35 +01:00
innocentzero
34a428f280
refactor(minor code changes)
2024-01-28 03:11:41 +05:30
innocentzero
fb21691e64
fix(remove collection of dependencies)
...
https://github.com/steven-omaha/pacdef/pull/50#issuecomment-1912284202
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-01-27 23:52:48 +05:30
innocentzero
b8cfd9e24f
feat(pipx support): Fully supports pipx features
...
Now able to support packages installed via pipx with the exception of
packages that do not provide a binary themselves. Install those
explicitly via `pipx install --include-deps <package>`.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-01-27 23:35:37 +05:30
innocentzero
2a7c5d5288
FIX refactored switches and output parsing
...
Removed inlined switches to a separate function for both explicit
installs and all installs and added a match statement to parse the
outputs accordingly.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-01-25 11:52:16 +05:30
innocentzero
242af523b4
FIX iterate through json generated by pipx
...
While it is now able to iterate through JSON created by pipx, it is
unable to read the JSON with the error `EOF while parsing a value
at line 1 column 0`
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-01-24 20:21:05 +05:30
innocentzero
050a844bc2
feat(pipx support): Add support for pipx
...
This is a series of commits intended to add support for pipx in pacdef.
WIP.
Signed-off-by: innocentzero <isfarulhaque@proton.me >
2024-01-23 20:42:54 +05:30