From 2f8b1ab418f57850989ae7a00b7a65f4b325baba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fern=C3=A1ndez?= Date: Wed, 15 Jan 2025 20:26:56 +0100 Subject: [PATCH 1/3] Break outer loop on exit --- src/monitor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monitor.rs b/src/monitor.rs index 5c91d89..c5de7ff 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -185,7 +185,7 @@ pub async fn monitor( // Main loop, receive any produced event and write it into the events log. - loop { + 'processor: loop { for message in &rx { match message { Ok(event) => { @@ -198,7 +198,7 @@ pub async fn monitor( }; if plain_path == "DISCONNECT" { info!("Received exit signal, exiting..."); - break; + break 'processor; } let event_path = Path::new(plain_path); From ebba6d71dbaeb3347971a6d9dd3d9a1b307af485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fern=C3=A1ndez?= Date: Wed, 15 Jan 2025 20:32:48 +0100 Subject: [PATCH 2/3] Updated macos workflow to latest --- .github/workflows/code-testing-workflow.yml | 4 ++-- .github/workflows/install-test.yml | 2 +- .github/workflows/pkg-build-workflow.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-testing-workflow.yml b/.github/workflows/code-testing-workflow.yml index 31d2ef6..5db034f 100644 --- a/.github/workflows/code-testing-workflow.yml +++ b/.github/workflows/code-testing-workflow.yml @@ -20,7 +20,7 @@ jobs: - run: echo "Job's status is ${{ job.status }}." Compilation-test-macos: - runs-on: macos-12 + runs-on: macos-latest steps: - name: Check out repository code, branch='${{ github.ref }}' uses: actions/checkout@v2 @@ -63,7 +63,7 @@ jobs: - run: echo "Job's status is ${{ job.status }}." Unit-tests-macos: - runs-on: macos-12 + runs-on: macos-latest steps: - name: Check out repository code, branch='${{ github.ref }}' uses: actions/checkout@v2 diff --git a/.github/workflows/install-test.yml b/.github/workflows/install-test.yml index 37f7be0..5ace6b9 100644 --- a/.github/workflows/install-test.yml +++ b/.github/workflows/install-test.yml @@ -77,7 +77,7 @@ jobs: Build-install-macos: - runs-on: macos-12 + runs-on: macos-latest steps: - name: Check out repository code, branch='${{ github.ref }}' uses: actions/checkout@v2 diff --git a/.github/workflows/pkg-build-workflow.yml b/.github/workflows/pkg-build-workflow.yml index 1e3dfef..8cc2ef5 100644 --- a/.github/workflows/pkg-build-workflow.yml +++ b/.github/workflows/pkg-build-workflow.yml @@ -41,8 +41,8 @@ jobs: - name: CentOS 7 - Package build run: sudo docker run --rm okynos/fim-builder:centos7 ${{ github.ref_name }} - Pkg-build-macos11: - runs-on: macos-12 + Pkg-build-macos: + runs-on: macos-latest steps: - name: Check out code uses: actions/checkout@v2 From 1bb9b1f6b3314166772bb1a5c9d81731e03c4402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fern=C3=A1ndez?= Date: Wed, 15 Jan 2025 20:56:52 +0100 Subject: [PATCH 3/3] Bump to v0.5.2 --- Cargo.toml | 2 +- pkg/deb/debian/changelog | 6 ++++++ pkg/rpm/fim.spec | 3 +++ src/appconfig.rs | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87411f8..d0d7427 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fim" -version = "0.5.1" +version = "0.5.2" authors = ["José Fernández <´pylott@gmail.com´>"] edition = "2021" diff --git a/pkg/deb/debian/changelog b/pkg/deb/debian/changelog index c712db8..2f1d236 100644 --- a/pkg/deb/debian/changelog +++ b/pkg/deb/debian/changelog @@ -1,3 +1,9 @@ +fim (0.5.2-1) xenial; urgency=medium + + * More info: https://github.com/Achiefs/fim/releases/tag/v0.5.2 + + -- Jose Fernandez Wed, 15 Jan 2025 20:54:00 +0000 + fim (0.5.1-1) xenial; urgency=medium * More info: https://github.com/Achiefs/fim/releases/tag/v0.5.1 diff --git a/pkg/rpm/fim.spec b/pkg/rpm/fim.spec index 4026848..84cdfad 100644 --- a/pkg/rpm/fim.spec +++ b/pkg/rpm/fim.spec @@ -101,6 +101,9 @@ rm -fr %{buildroot} # ----------------------------------------------------------------------------- %changelog +* Wed Jan 15 2025 support - 0.5.2 +- More info: https://github.com/Achiefs/fim/releases/tag/v0.5.2 + * Thu Oct 10 2024 support - 0.5.1 - More info: https://github.com/Achiefs/fim/releases/tag/v0.5.1 diff --git a/src/appconfig.rs b/src/appconfig.rs index 0104522..922a8a2 100644 --- a/src/appconfig.rs +++ b/src/appconfig.rs @@ -1,7 +1,7 @@ // Copyright (C) 2021, Achiefs. // Global constants definitions -pub const VERSION: &str = "0.5.1"; +pub const VERSION: &str = "0.5.2"; pub const NETWORK_MODE: &str = "NETWORK"; pub const FILE_MODE: &str = "FILE"; pub const BOTH_MODE: &str = "BOTH";