Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kubie for openSUSE:Factory checked in at 2023-02-02 18:08:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kubie (Old) and /work/SRC/openSUSE:Factory/.kubie.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kubie" Thu Feb 2 18:08:57 2023 rev:12 rq:1062608 version:0.19.3 Changes: -------- --- /work/SRC/openSUSE:Factory/kubie/kubie.changes 2023-01-31 16:11:14.654464001 +0100 +++ /work/SRC/openSUSE:Factory/.kubie.new.32243/kubie.changes 2023-02-02 18:26:32.286786582 +0100 @@ -1,0 +2,10 @@ +Thu Feb 02 06:48:01 UTC 2023 - [email protected] + +- Update to version 0.19.3: + * Version 0.19.3 + * Delete old release script + * Github actions handle publish now + * Apply clippy lints + * Add job to publish to crates.io when tag is created + +------------------------------------------------------------------- Old: ---- kubie-0.19.2.tar.gz New: ---- kubie-0.19.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kubie.spec ++++++ --- /var/tmp/diff_new_pack.OIWR8F/_old 2023-02-02 18:26:42.790850929 +0100 +++ /var/tmp/diff_new_pack.OIWR8F/_new 2023-02-02 18:26:42.798850978 +0100 @@ -19,7 +19,7 @@ %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' Name: kubie -Version: 0.19.2 +Version: 0.19.3 Release: 0 Summary: A Kubernetes context switcher License: Zlib ++++++ _service ++++++ --- /var/tmp/diff_new_pack.OIWR8F/_old 2023-02-02 18:26:42.826851150 +0100 +++ /var/tmp/diff_new_pack.OIWR8F/_new 2023-02-02 18:26:42.830851174 +0100 @@ -5,7 +5,7 @@ <param name="exclude">.git</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">v0.19.2</param> + <param name="revision">v0.19.3</param> <param name="changesgenerate">enable</param> </service> <service name="recompress" mode="disabled"> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.OIWR8F/_old 2023-02-02 18:26:42.846851271 +0100 +++ /var/tmp/diff_new_pack.OIWR8F/_new 2023-02-02 18:26:42.850851296 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/sbstp/kubie</param> - <param name="changesrevision">74831cf26fe9389b2643b87180d99b89b54d4832</param></service></servicedata> + <param name="changesrevision">9a479232b1f604c28deb3db5aa61ec28e46c197b</param></service></servicedata> (No newline at EOF) ++++++ kubie-0.19.2.tar.gz -> kubie-0.19.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/.github/workflows/release.yml new/kubie-0.19.3/.github/workflows/release.yml --- old/kubie-0.19.2/.github/workflows/release.yml 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/.github/workflows/release.yml 2023-02-01 06:12:40.000000000 +0100 @@ -7,7 +7,7 @@ jobs: build-linux-amd64-static: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -27,7 +27,7 @@ tag: ${{ github.ref }} build-linux-arm32-static: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -48,7 +48,7 @@ tag: ${{ github.ref }} build-linux-arm64-static: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -101,3 +101,19 @@ file: target/aarch64-apple-darwin/release/kubie asset_name: kubie-darwin-arm64 tag: ${{ github.ref }} + + publish-crates-io: + name: Publish to crates.io + runs-on: ubuntu-22.04 + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: cargo publish --token ${CRATES_TOKEN} + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/Cargo.lock new/kubie-0.19.3/Cargo.lock --- old/kubie-0.19.2/Cargo.lock 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/Cargo.lock 2023-02-01 06:12:40.000000000 +0100 @@ -641,7 +641,7 @@ [[package]] name = "kubie" -version = "0.19.2" +version = "0.19.3" dependencies = [ "anyhow", "attohttpc", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/Cargo.toml new/kubie-0.19.3/Cargo.toml --- old/kubie-0.19.2/Cargo.toml 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/Cargo.toml 2023-02-01 06:12:40.000000000 +0100 @@ -11,7 +11,7 @@ name = "kubie" readme = "README.md" repository = "https://github.com/sbstp/kubie" -version = "0.19.2" +version = "0.19.3" [dependencies] anyhow = "1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/cmd/context.rs new/kubie-0.19.3/src/cmd/context.rs --- old/kubie-0.19.2/src/cmd/context.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/cmd/context.rs 2023-02-01 06:12:40.000000000 +0100 @@ -41,7 +41,7 @@ if let Some(namespace_name) = namespace_name { let namespaces = kubectl::get_namespaces(Some(&kubeconfig))?; if !namespaces.iter().any(|x| x == namespace_name) { - eprintln!("Warning: namespace {} does not exist.", namespace_name); + eprintln!("Warning: namespace {namespace_name} does not exist."); } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/cmd/exec.rs new/kubie-0.19.3/src/cmd/exec.rs --- old/kubie-0.19.2/src/cmd/exec.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/cmd/exec.rs 2023-02-01 06:12:40.000000000 +0100 @@ -19,7 +19,7 @@ let depth = vars::get_depth(); let next_depth = depth + 1; - let mut signals = Signals::new(&[SIGHUP, SIGTERM, SIGINT, SIGQUIT, SIGWINCH, SIGUSR1, SIGUSR2]) + let mut signals = Signals::new([SIGHUP, SIGTERM, SIGINT, SIGQUIT, SIGWINCH, SIGUSR1, SIGUSR2]) .expect("could not install signal handler"); let mut child = Command::new(&args[0]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/cmd/mod.rs new/kubie-0.19.3/src/cmd/mod.rs --- old/kubie-0.19.2/src/cmd/mod.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/cmd/mod.rs 2023-02-01 06:12:40.000000000 +0100 @@ -52,7 +52,7 @@ Ok(SelectResult::Selected(selected_items[0].output().to_string())) } else { for c in context_names { - println!("{}", c); + println!("{c}"); } Ok(SelectResult::Listed) } @@ -83,7 +83,7 @@ Ok(SelectResult::Selected(selected_items[0].output().to_string())) } else { for n in namespaces { - println!("{}", n); + println!("{n}"); } Ok(SelectResult::Listed) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/cmd/update.rs new/kubie-0.19.3/src/cmd/update.rs --- old/kubie-0.19.2/src/cmd/update.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/cmd/update.rs 2023-02-01 06:12:40.000000000 +0100 @@ -19,7 +19,7 @@ impl Release { pub fn get_latest() -> Result<Release> { - let latest_release = attohttpc::get(&LATEST_RELEASE_URL).send()?.json()?; + let latest_release = attohttpc::get(LATEST_RELEASE_URL).send()?.json()?; Ok(latest_release) } @@ -62,8 +62,8 @@ pub fn update() -> Result<()> { let latest_release = Release::get_latest()?; - if latest_release.tag_name == format!("v{}", VERSION) { - println!("Kubie is up-to-date : v{}", VERSION); + if latest_release.tag_name == format!("v{VERSION}") { + println!("Kubie is up-to-date : v{VERSION}"); } else { println!( "A new version of Kubie is available ({}), the new version will be installed by replacing this binary.", @@ -71,7 +71,7 @@ ); let download_url = latest_release.get_binary_url().context("Sorry, this release has no build for your OS, please create an issue : https://github.com/sbstp/kubie/issues")?; - println!("Download url is: {}", download_url); + println!("Download url is: {download_url}"); let resp = attohttpc::get(download_url).send()?; if resp.is_success() { @@ -90,7 +90,7 @@ pub fn replace_file(old_file: &Path, new_file: &Path) -> std::io::Result<()> { fs::set_permissions(new_file, Permissions::from_mode(0o755))?; fs::remove_file(old_file)?; - fs::copy(&new_file, old_file)?; + fs::copy(new_file, old_file)?; Ok(()) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/kubeconfig.rs new/kubie-0.19.3/src/kubeconfig.rs --- old/kubie-0.19.2/src/kubeconfig.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/kubeconfig.rs 2023-02-01 06:12:40.000000000 +0100 @@ -75,7 +75,7 @@ impl KubeConfig { pub fn write_to_file(&self, path: &Path) -> anyhow::Result<()> { let file = File::create(path).context("could not write file")?; - fs::set_permissions(&path, Permissions::from_mode(0o600))?; + fs::set_permissions(path, Permissions::from_mode(0o600))?; let buffer = BufWriter::new(file); serde_yaml::to_writer(buffer, self)?; @@ -227,7 +227,7 @@ continue; } - let kubeconfig: Result<KubeConfig> = ioutil::read_yaml(&path); + let kubeconfig: Result<KubeConfig> = ioutil::read_yaml(path); match kubeconfig { Ok(mut kubeconfig) => { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/session.rs new/kubie-0.19.3/src/session.rs --- old/kubie-0.19.2/src/session.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/session.rs 2023-02-01 06:12:40.000000000 +0100 @@ -47,12 +47,11 @@ pub fn get_last_context(&self) -> Option<&HistoryEntry> { let current_context = self.history.last()?; - for entry in self.history.iter().rev().skip(1) { - if current_context.context != entry.context { - return Some(entry); - } - } - None + self.history + .iter() + .rev() + .skip(1) + .find(|&entry| current_context.context != entry.context) } pub fn get_last_namespace(&self) -> Option<&str> { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/settings.rs new/kubie-0.19.3/src/settings.rs --- old/kubie-0.19.2/src/settings.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/settings.rs 2023-02-01 06:12:40.000000000 +0100 @@ -18,7 +18,7 @@ #[inline] fn home_dir() -> &'static str { - &*HOME_DIR + &HOME_DIR } pub fn expanduser(path: &str) -> String { @@ -103,13 +103,13 @@ fn default_include_path() -> Vec<String> { let home_dir = home_dir(); vec![ - format!("{}/.kube/config", home_dir), - format!("{}/.kube/*.yml", home_dir), - format!("{}/.kube/*.yaml", home_dir), - format!("{}/.kube/configs/*.yml", home_dir), - format!("{}/.kube/configs/*.yaml", home_dir), - format!("{}/.kube/kubie/*.yml", home_dir), - format!("{}/.kube/kubie/*.yaml", home_dir), + format!("{home_dir}/.kube/config"), + format!("{home_dir}/.kube/*.yml"), + format!("{home_dir}/.kube/*.yaml"), + format!("{home_dir}/.kube/configs/*.yml"), + format!("{home_dir}/.kube/configs/*.yaml"), + format!("{home_dir}/.kube/kubie/*.yml"), + format!("{home_dir}/.kube/kubie/*.yaml"), ] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/shell/prompt.rs new/kubie-0.19.3/src/shell/prompt.rs --- old/kubie-0.19.2/src/shell/prompt.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/shell/prompt.rs 2023-02-01 06:12:40.000000000 +0100 @@ -52,16 +52,16 @@ E: Display, { match self.shell_kind { - ShellKind::Fish | ShellKind::Xonsh => write!(f, "{}", content), - ShellKind::Zsh => write!(f, "%{{{}%}}", content), - _ => write!(f, "\\[{}\\]", content), + ShellKind::Fish | ShellKind::Xonsh => write!(f, "{content}"), + ShellKind::Zsh => write!(f, "%{{{content}%}}"), + _ => write!(f, "\\[{content}\\]"), } } fn start_color(&self, f: &mut fmt::Formatter, color: u32) -> fmt::Result { match self.shell_kind { - ShellKind::Xonsh => self.isolate(f, format!("\\033[{}m", color)), - _ => self.isolate(f, format!("\\e[{}m", color)), + ShellKind::Xonsh => self.isolate(f, format!("\\033[{color}m")), + _ => self.isolate(f, format!("\\e[{color}m")), } } @@ -101,7 +101,7 @@ parts.push( Color::new( RED, - Command::new(format!("{} info ctx", current_exe_path_str), shell_kind), + Command::new(format!("{current_exe_path_str} info ctx"), shell_kind), shell_kind, ) .to_string(), @@ -109,7 +109,7 @@ parts.push( Color::new( GREEN, - Command::new(format!("{} info ns", current_exe_path_str), shell_kind), + Command::new(format!("{current_exe_path_str} info ns"), shell_kind), shell_kind, ) .to_string(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/src/state.rs new/kubie-0.19.3/src/state.rs --- old/kubie-0.19.2/src/state.rs 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/src/state.rs 2023-02-01 06:12:40.000000000 +0100 @@ -22,17 +22,17 @@ #[inline] pub fn data_dir() -> &'static Path { - &*KUBIE_DATA_DIR + &KUBIE_DATA_DIR } #[inline] pub fn state() -> &'static Path { - &*KUBIE_STATE_PATH + &KUBIE_STATE_PATH } #[inline] pub fn state_lock() -> &'static Path { - &*KUBIE_STATE_LOCK_PATH + &KUBIE_STATE_LOCK_PATH } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubie-0.19.2/tools/release.bash new/kubie-0.19.3/tools/release.bash --- old/kubie-0.19.2/tools/release.bash 2023-01-29 22:48:18.000000000 +0100 +++ new/kubie-0.19.3/tools/release.bash 1970-01-01 01:00:00.000000000 +0100 @@ -1,30 +0,0 @@ -#!/bin/bash - -set -Eeuo pipefail - -if [[ "$#" -ne 1 ]] ; then - echo "Usage: release.bash [version]" >&2 - exit 1 -fi - -if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]] ; then - echo "Not in master branch" >&2 - exit 1 -fi - -VERSION="$1" -CURRENT_VERSION="$(cat Cargo.toml | egrep 'version = "[0-9]+\.[0-9]+\.[0-9]+"' | egrep -o "[0-9]+\.[0-9]+\.[0-9]+")" - -if [[ "$VERSION" == "$CURRENT_VERSION" ]] ; then - echo "Version has not changed: $VERSION" >&2 - exit 1 -fi - -sed -i "s/version = \"[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\"/version = \"$VERSION\"/" Cargo.toml -cargo check -git add Cargo.* -git commit -m "Release version $VERSION" -git tag "v$VERSION" -git push origin master -git push origin master --tags -cargo publish ++++++ vendor.tar.xz ++++++ /work/SRC/openSUSE:Factory/kubie/vendor.tar.xz /work/SRC/openSUSE:Factory/.kubie.new.32243/vendor.tar.xz differ: char 27, line 1
