psst: 2024-08-19 -> 2024-10-07 (#348937)

This commit is contained in:
Aleksana 2024-10-24 16:29:33 +08:00 committed by GitHub
commit 6544110ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1014 additions and 324 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,13 +16,13 @@ let
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "psst"; pname = "psst";
version = "unstable-2024-08-19"; version = "unstable-2024-10-07";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jpochyla"; owner = "jpochyla";
repo = pname; repo = pname;
rev = "11bef15e66a3c9b0b991207d09a67c071b3dda02"; rev = "38d1c75d59848c54cb88896a93e05da3c71c7df4";
hash = "sha256-lKxWIUDouUUul7CpuTy30z/cLJAjFE9e0J1zyZ/PnIo="; hash = "sha256-iMtrZ1Mto3j4lFXI2Sm2R85+m8LpR7V1WoJ3X5JyF60=";
}; };
cargoLock = { cargoLock = {

View File

@ -1,9 +1,9 @@
diff --git a/psst-core/build.rs b/psst-core/build.rs diff --git a/psst-core/build.rs b/psst-core/build.rs
deleted file mode 100644 deleted file mode 100644
index e05191d..0000000 index cac2c23..0000000
--- a/psst-core/build.rs --- a/psst-core/build.rs
+++ /dev/null +++ /dev/null
@@ -1,39 +0,0 @@ @@ -1,41 +0,0 @@
-use std::{env, fs, io::Write}; -use std::{env, fs, io::Write};
- -
-fn main() { -fn main() {
@ -13,12 +13,14 @@ index e05191d..0000000
- let mut fh = fs::File::create(outfile).unwrap(); - let mut fh = fs::File::create(outfile).unwrap();
- write!(fh, r#""{}""#, chrono::Local::now()).ok(); - write!(fh, r#""{}""#, chrono::Local::now()).ok();
- -
- let git_config = gix_config::File::from_git_dir("../.git/".into()).expect("Git Config not found!"); - let git_config =
- gix_config::File::from_git_dir("../.git/".into()).expect("Git Config not found!");
- // Get Git's 'Origin' URL - // Get Git's 'Origin' URL
- let mut remote_url = git_config - let mut remote_url = git_config
- .raw_value("remote", Some("origin".as_ref()), "url") - .raw_value("remote.origin.url")
- .expect("Couldn't extract origin url!") - .expect("Couldn't extract origin url!")
- .to_string(); - .to_string();
-
- // Check whether origin is accessed via ssh - // Check whether origin is accessed via ssh
- if remote_url.contains('@') { - if remote_url.contains('@') {
- // If yes, strip the `git@` prefix and split the domain and path - // If yes, strip the `git@` prefix and split the domain and path
@ -44,7 +46,7 @@ index e05191d..0000000
- write!(file, r#""{}""#, remote_url).ok(); - write!(file, r#""{}""#, remote_url).ok();
-} -}
diff --git a/psst-core/src/lib.rs b/psst-core/src/lib.rs diff --git a/psst-core/src/lib.rs b/psst-core/src/lib.rs
index fcbd491..8f6e6f0 100644 index 2faa317..7d7501d 100644
--- a/psst-core/src/lib.rs --- a/psst-core/src/lib.rs
+++ b/psst-core/src/lib.rs +++ b/psst-core/src/lib.rs
@@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
@ -54,7 +56,7 @@ index fcbd491..8f6e6f0 100644
-pub const GIT_VERSION: &str = git_version!(); -pub const GIT_VERSION: &str = git_version!();
-pub const BUILD_TIME: &str = include!(concat!(env!("OUT_DIR"), "/build-time.txt")); -pub const BUILD_TIME: &str = include!(concat!(env!("OUT_DIR"), "/build-time.txt"));
-pub const REMOTE_URL: &str = include!(concat!(env!("OUT_DIR"), "/remote-url.txt")); -pub const REMOTE_URL: &str = include!(concat!(env!("OUT_DIR"), "/remote-url.txt"));
+pub const GIT_VERSION: &str = "11bef15e66a3c9b0b991207d09a67c071b3dda02"; +pub const GIT_VERSION: &str = "38d1c75d59848c54cb88896a93e05da3c71c7df4";
+pub const BUILD_TIME: &str = "1970-01-01 00:00:00"; +pub const BUILD_TIME: &str = "1970-01-01 00:00:00";
+pub const REMOTE_URL: &str = "https://github.com/jpochyla/psst"; +pub const REMOTE_URL: &str = "https://github.com/jpochyla/psst";