Unverified Commit 6544110e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents 1f593c92 3ac13c9f
Loading
Loading
Loading
Loading
+1025 −337

File changed.

Preview size limit exceeded, changes collapsed.

+3 −3
Original line number Diff line number Diff line
@@ -16,13 +16,13 @@ let
in
rustPlatform.buildRustPackage rec {
  pname = "psst";
  version = "unstable-2024-08-19";
  version = "unstable-2024-10-07";

  src = fetchFromGitHub {
    owner = "jpochyla";
    repo = pname;
    rev = "11bef15e66a3c9b0b991207d09a67c071b3dda02";
    hash = "sha256-lKxWIUDouUUul7CpuTy30z/cLJAjFE9e0J1zyZ/PnIo=";
    rev = "38d1c75d59848c54cb88896a93e05da3c71c7df4";
    hash = "sha256-iMtrZ1Mto3j4lFXI2Sm2R85+m8LpR7V1WoJ3X5JyF60=";
  };

  cargoLock = {
+8 −6
Original line number Diff line number Diff line
diff --git a/psst-core/build.rs b/psst-core/build.rs
deleted file mode 100644
index e05191d..0000000
index cac2c23..0000000
--- a/psst-core/build.rs
+++ /dev/null
@@ -1,39 +0,0 @@
@@ -1,41 +0,0 @@
-use std::{env, fs, io::Write};
-
-fn main() {
@@ -13,12 +13,14 @@ index e05191d..0000000
-    let mut fh = fs::File::create(outfile).unwrap();
-    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
-    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!")
-        .to_string();
-
-    // Check whether origin is accessed via ssh
-    if remote_url.contains('@') {
-        // 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();
-}
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
+++ b/psst-core/src/lib.rs
@@ -2,9 +2,9 @@
@@ -54,7 +56,7 @@ index fcbd491..8f6e6f0 100644
-pub const GIT_VERSION: &str = git_version!();
-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 GIT_VERSION: &str = "11bef15e66a3c9b0b991207d09a67c071b3dda02";
+pub const GIT_VERSION: &str = "38d1c75d59848c54cb88896a93e05da3c71c7df4";
+pub const BUILD_TIME: &str = "1970-01-01 00:00:00";
+pub const REMOTE_URL: &str = "https://github.com/jpochyla/psst";