Skip to content

Commit 484f475

Browse files
authored
Merge pull request #585 from turbot/v2.1.x
2 parents 4a9845c + 2febec3 commit 484f475

File tree

7 files changed

+51
-11
lines changed

7 files changed

+51
-11
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Assign Issue to Project
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
add-to-project:
9+
uses: turbot/steampipe-workflows/.github/workflows/assign-issue-to-pipeling-issue-tracker.yml@main
10+
with:
11+
issue_number: ${{ github.event.issue.number }}
12+
repository: ${{ github.repository }}
13+
secrets: inherit

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- name: Get Release assets
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
run: |-
25+
run: |-
2626
gh release download ${{ github.event.inputs.release }} --dir . --repo ${{ github.repository }}
2727
2828
- name: Release assets downloaded
29-
run: |-
29+
run: |-
3030
ls -la .
3131
3232
- name: Sanitize Version
@@ -91,6 +91,7 @@ jobs:
9191
- name: Push to registry
9292
run: |-
9393
REF="$CORE_REPO/$IMAGE_NAME:$VERSION"
94+
LATEST_REF="$CORE_REPO/$IMAGE_NAME:latest"
9495
oras push $REF \
9596
--config config.json:application/vnd.turbot.steampipe.config.v1+json \
9697
--annotation-file annotations.json \
@@ -100,3 +101,11 @@ jobs:
100101
steampipe_postgres_fdw.so.linux_arm64.gz:application/vnd.turbot.steampipe.fdw.linux-arm64.layer.v1+gzip \
101102
steampipe_postgres_fdw.control:application/vnd.turbot.steampipe.fdw.control.layer.v1+text \
102103
steampipe_postgres_fdw--1.0.sql:application/vnd.turbot.steampipe.fdw.sql.layer.v1+text
104+
105+
# check if the version is NOT an rc version before tagging as latest
106+
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
107+
echo "Tagging as latest: $LATEST_REF"
108+
oras tag $REF $LATEST_REF
109+
else
110+
echo "Skipping latest tag for rc version: $VERSION"
111+
fi

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## v2.1.2 [2025-08-14]
2+
_Bug fixes_
3+
- Fix darwin build: remove sysroot override for Darwin SDK path in Makefile.
4+
5+
## v2.1.1 [2025-08-14]
6+
_Bug fixes_
7+
- **v2+ Plugin Version Support**: Fixed import path generation in templates to correctly handle v2+ plugin versions. The build process now properly appends the major version to the module path (e.g., `github.com/turbot/steampipe-plugin-aws/v2` for v2.x.x plugins) instead of using the base path which was causing build failures.
8+
9+
110
## v2.1.0 [2025-07-09]
211
_Whats new_
312
- Bump module to v2 and update Go version to 1.24.

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ standalone: validate_plugin validate_version prebuild.go
2828
cd work && \
2929
go run generate/generator.go templates . $(plugin) $(plugin_version) $(plugin_github_url) && \
3030
if [ ! -z "$(plugin_version)" ]; then \
31-
echo "go get $(plugin_github_url)@$(plugin_version)" && \
32-
go get $(plugin_github_url)@$(plugin_version); \
31+
MAJOR_VERSION=$$(echo $(plugin_version) | grep -o '^v[0-9]\+' || echo "v1") && \
32+
if [ "$$MAJOR_VERSION" = "v1" ] || [ "$$MAJOR_VERSION" = "v0" ]; then \
33+
echo "go get $(plugin_github_url)@$(plugin_version)" && \
34+
go get $(plugin_github_url)@$(plugin_version); \
35+
else \
36+
echo "go get $(plugin_github_url)/$$MAJOR_VERSION@$(plugin_version)" && \
37+
go get $(plugin_github_url)/$$MAJOR_VERSION@$(plugin_version); \
38+
fi; \
3339
fi && \
3440
go mod tidy && \
3541
$(MAKE) -C ./fdw clean && \
@@ -61,8 +67,14 @@ render: validate_plugin validate_version prebuild.go
6167
cd work && \
6268
go run generate/generator.go templates . $(plugin) $(plugin_version) $(plugin_github_url) && \
6369
if [ ! -z "$(plugin_version)" ]; then \
64-
echo "go get $(plugin_github_url)@$(plugin_version)" && \
65-
go get $(plugin_github_url)@$(plugin_version); \
70+
MAJOR_VERSION=$$(echo $(plugin_version) | grep -o '^v[0-9]\+' || echo "v1") && \
71+
if [ "$$MAJOR_VERSION" = "v1" ] || [ "$$MAJOR_VERSION" = "v0" ]; then \
72+
echo "go get $(plugin_github_url)@$(plugin_version)" && \
73+
go get $(plugin_github_url)@$(plugin_version); \
74+
else \
75+
echo "go get $(plugin_github_url)/$$MAJOR_VERSION@$(plugin_version)" && \
76+
go get $(plugin_github_url)/$$MAJOR_VERSION@$(plugin_version); \
77+
fi; \
6678
fi && \
6779
go mod tidy
6880

fdw/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ PLATFORM=$(shell uname)
99

1010
ifeq ($(shell uname), Darwin)
1111
PG_LDFLAGS=-framework Foundation -framework AppKit -framework Security
12-
# Override the sysroot to use the correct available SDK
13-
override CPPFLAGS += -isysroot $(shell xcrun --show-sdk-path)
14-
override LDFLAGS += -isysroot $(shell xcrun --show-sdk-path)
1512
endif
1613

1714
EXTENSION = steampipe_postgres_fdw

templates/hub/hub_local_plugin.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package hub
22

33
import (
4-
{{.Plugin}} "{{.PluginGithubUrl}}/{{.Plugin}}"
4+
{{.Plugin}} "{{.PluginGithubUrl}}{{if .PluginVersion}}{{if not (or (eq (slice .PluginVersion 0 2) "v1") (eq (slice .PluginVersion 0 2) "v0"))}}/{{slice .PluginVersion 0 2}}{{end}}{{end}}/{{.Plugin}}"
55
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
66
)
77

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// The main version number that is being run at the moment.
14-
var fdwVersion = "2.1.0"
14+
var fdwVersion = "2.1.2"
1515

1616
// A pre-release marker for the version. If this is "" (empty string)
1717
// then it means that it is a final release. Otherwise, this is a pre-release

0 commit comments

Comments
 (0)