8000 first pass on removing git integration and git sync by martintc · Pull Request #439 · comtrya/comtrya · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

first pass on removing git integration and git sync #439

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

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations 10000
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,443 changes: 546 additions & 897 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/src/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ Comtrya provides multiple actions which are broken down into groups with the act
- [Binary](./binary.md)
- [Commands](./command.md)
- [Files and Directories](./files-and-directories.md)
- [Git](./git.md)
- [Git](./git.md)[^note]
- [Group](./group.md)
- [macOS](./macos.md)
- [Packages](./packages.md)
- [User](./user.md)

[^note]: Git actions will no longer be available in main or versions after 0.8.8.
4 changes: 4 additions & 0 deletions docs/src/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- git.clone

## Deprecation notice

This functionality will no longer be available in the main branch or versions of comtrya later than 0.8.8.

## git.clone

Perform a git clone on a repository from github.
Expand Down
4 changes: 0 additions & 4 deletions examples/git/clone.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ age = { version = "0.10", features = ["armor"] }
dirs-next = "2.0"
file_diff = "1.0"
gethostname = "0.4"
gitsync = "0.1"
ignore = "0.4"
normpath = "1.2"
octocrab = "0.39"
Expand Down Expand Up @@ -44,10 +43,6 @@ flate2 = "1.0.30"
[target.'cfg(unix)'.dependencies]
uzers = "0.12"

[dependencies.openssl-sys]
version="0.9"
features = ["vendored"]

[dev-dependencies]
tempfile = "3.10"
pretty_assertions = "1.3"
27 changes: 0 additions & 27 deletions lib/src/actions/git/clone.rs

This file was deleted.

2 changes: 0 additions & 2 deletions lib/src/actions/git/mod.rs

This file was deleted.

7 changes: 0 additions & 7 deletions lib/src/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mod binary;
mod command;
mod directory;
mod file;
mod git;
mod group;
mod macos;
mod package;
Expand All @@ -19,7 +18,6 @@ use file::copy::FileCopy;
use file::download::FileDownload;
use file::link::FileLink;
use file::remove::FileRemove;
use git::GitClone;
use group::add::GroupAdd;
use macos::MacOSDefault;
use package::{PackageInstall, PackageRepository};
Expand Down Expand Up @@ -136,9 +134,6 @@ pub enum Actions {
)]
BinaryGitHub(ConditionalVariantAction<BinaryGitHub>),

#[serde(rename = "git.clone")]
GitClone(ConditionalVariantAction<GitClone>),

#[serde(rename = "group.add")]
GroupAdd(ConditionalVariantAction<GroupAdd>),

Expand Down Expand Up @@ -168,7 +163,6 @@ impl Actions {
Actions::FileCopy(a) => a,
Actions::FileDownload(a) => a,
Actions::FileLink(a) => a,
Actions::GitClone(a) => a,
Actions::GroupAdd(a) => a,
Actions::MacOSDefault(a) => a,
Actions::PackageInstall(a) => a,
Expand All @@ -193,7 +187,6 @@ impl Display for Actions {
Actions::FileRemove(_) => "file.remove",
Actions::DirectoryRemove(_) => "directory.remove",
Actions::BinaryGitHub(_) => "github.binary",
Actions::GitClone(_) => "git.clone",
Actions::GroupAdd(_) => "group.add",
Actions::MacOSDefault(_) => "macos.default",
Actions::PackageInstall(_) => "package.install",
Expand Down
108 changes: 0 additions & 108 deletions lib/src/atoms/git/clone.rs

This file was deleted.

2 changes: 0 additions & 2 deletions lib/src/atoms/git/mod.rs

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/atoms/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pub mod command;
pub mod directory;
pub mod file;
pub mod git;
pub mod http;

pub enum SideEffect {}
Expand Down
Loading
Loading
0