Skip to content

Commit

Permalink
0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed Jul 21, 2024
1 parent 14032b6 commit 930e857
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ body:
label: Which version of Goral do you run (`goral --version`)?
multiple: false
options:
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
Expand Down
2 changes: 1 addition & 1 deletion .github/site/src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main() {

get_architecture || return 1
local _arch="$RETVAL"
local _version=${1:-'0.1.8'}
local _version=${1:-'0.1.9'}
assert_nz "$_arch" "arch"

local _file="goral-${_version}-${_arch}"
Expand Down
8 changes: 4 additions & 4 deletions .github/site/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ curl --proto '=https' --tlsv1.2 -sSf https://maksimryndin.github.io/goral/instal
</summary>

```sh
wget https://github.com/maksimryndin/goral/releases/download/0.1.8/goral-0.1.8-x86_64-unknown-linux-gnu.tar.gz
tar -xzf goral-0.1.8-x86_64-unknown-linux-gnu.tar.gz
cd goral-0.1.8-x86_64-unknown-linux-gnu/
wget https://github.com/maksimryndin/goral/releases/download/0.1.9/goral-0.1.9-x86_64-unknown-linux-gnu.tar.gz
tar -xzf goral-0.1.9-x86_64-unknown-linux-gnu.tar.gz
cd goral-0.1.9-x86_64-unknown-linux-gnu/
shasum -a 256 -c sha256_checksum.txt
```
</details>
Expand All @@ -23,7 +23,7 @@ shasum -a 256 -c sha256_checksum.txt

```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone --depth 1 --branch 0.1.8 https://github.com/maksimryndin/goral
git clone --depth 1 --branch 0.1.9 https://github.com/maksimryndin/goral
cd goral
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target <target triple>
```
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "goral"
version = "0.1.8"
version = "0.1.9"
edition = "2021"
author = "Maksim Ryndin"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/services/system/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl SystemService {
match request {
#[cfg(target_os = "linux")]
SystemInfoRequest::SshNeedUpdate(changelog, reply_to) => {
let response = ssh::check_is_ssh_needs_update(&changelog);
let response = ssh::check_ssh_needs_update(&changelog);
if reply_to.send(response).is_err() {
if is_shutdown.load(Ordering::Relaxed) {
tracing::info!("exiting system info scraping thread");
Expand Down
4 changes: 2 additions & 2 deletions src/services/system/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ fn parse_ssh_version_and_patch(command_output: &str) -> Option<(&str, &str)> {
})
}

pub(super) fn check_is_ssh_needs_update(changelog: &str) -> Result<bool, String> {
pub(super) fn check_ssh_needs_update(changelog: &str) -> Result<bool, String> {
let output = get_system_ssh_version_and_patch()?;
let (version, patch) = parse_ssh_version_and_patch(&output)
.ok_or_else(|| "failed to parse ssh version command output".to_string())?;
Expand Down Expand Up @@ -336,7 +336,7 @@ fn parse_lts_end(command_output: &str) -> Option<DateTime<Utc>> {
static ref RE: Regex = RegexBuilder::new(r#"(january|february|march|april|may|june|july|august|september|october|november|december)\s(\d{4})"#)
.case_insensitive(true)
.build()
.expect("assert: ssh version command regex is properly constructed");
.expect("assert: system end of support command regex is properly constructed");
}
let (month, year) = RE.captures(command_output).map(|capture| {
let (_, [month, year]) = capture.extract();
Expand Down

0 comments on commit 930e857

Please sign in to comment.