From 76915469d504e2612b97d5a30a8875fa59f08ac2 Mon Sep 17 00:00:00 2001 From: Swetha Swaminathan Date: Thu, 27 Feb 2025 10:55:45 +0530 Subject: [PATCH 1/4] change container name to a constant --- src/paas_charm/go/charm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/paas_charm/go/charm.py b/src/paas_charm/go/charm.py index f86fd20..854eb21 100644 --- a/src/paas_charm/go/charm.py +++ b/src/paas_charm/go/charm.py @@ -13,6 +13,8 @@ from paas_charm.charm import PaasCharm from paas_charm.framework import FrameworkConfig +WORKLOAD_CONTAINER_NAME = "app" + class GoConfig(FrameworkConfig): """Represent Go builtin configuration values. @@ -59,7 +61,7 @@ def _workload_config(self) -> WorkloadConfig: framework_config = typing.cast(GoConfig, self.get_framework_config()) return WorkloadConfig( framework=framework_name, - container_name="app", + container_name=WORKLOAD_CONTAINER_NAME, port=framework_config.port, base_dir=base_dir, app_dir=base_dir, From c4f423f8f0ddc973c96f037348410f41df08aa4c Mon Sep 17 00:00:00 2001 From: Swetha Swaminathan Date: Thu, 27 Feb 2025 12:25:40 +0530 Subject: [PATCH 2/4] update package version and changelog --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f14b795..7f8b40c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v1.3.1 - 2025-02-27 + +### Changed + +* Changed workload container name to a constant value for the go-framework + ## v1.3.0 - 2025-02-24 ### Changed diff --git a/pyproject.toml b/pyproject.toml index 7645534..400ba45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ # See LICENSE file for licensing details. [project] name = "paas-charm" -version = "1.3.0" +version = "1.3.1" description = "Companion library for 12-factor app support in Charmcraft & Rockcraft." readme = "README.md" authors = [ From 9862ebdf9edfd8045889d7c5a2d3d2a4abc47e16 Mon Sep 17 00:00:00 2001 From: Swetha Swaminathan Date: Thu, 27 Feb 2025 13:39:09 +0530 Subject: [PATCH 3/4] update package version and changelog --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f8b40c..9840387 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## v1.3.2 - 2025-02-27 + +### Changed + +* No code changes. [Release workflow from 1.3.1](https://github.com/canonical/paas-charm/actions/runs/13560661165/job/37903076785) seems to have failed due to the error `400 This filename has already been used, use a different version. + ## v1.3.1 - 2025-02-27 ### Changed diff --git a/pyproject.toml b/pyproject.toml index 400ba45..71078e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ # See LICENSE file for licensing details. [project] name = "paas-charm" -version = "1.3.1" +version = "1.3.2" description = "Companion library for 12-factor app support in Charmcraft & Rockcraft." readme = "README.md" authors = [ From 1190556403551bee04a6b6048c1c9008b3dafd15 Mon Sep 17 00:00:00 2001 From: Swetha Swaminathan Date: Thu, 27 Feb 2025 14:00:12 +0530 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9840387..44f5931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,12 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -* No code changes. [Release workflow from 1.3.1](https://github.com/canonical/paas-charm/actions/runs/13560661165/job/37903076785) seems to have failed due to the error `400 This filename has already been used, use a different version. - -## v1.3.1 - 2025-02-27 - -### Changed - * Changed workload container name to a constant value for the go-framework ## v1.3.0 - 2025-02-24