Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions projects/aws.amazon.com/session-manager-plugin/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ build:
go.dev: 1.23
gnu.org/make: "*"
script:
- echo "{{version}}" > VERSION
- sed -i -e 's/1.2.0.0/{{version.raw}}/g' src/version/version.go
# recommended to keep the bumped, incorrect version, as of 1.2.804.0
- run:
- echo "{{version}}" > VERSION
- sed -i -e 's/1.2+.0.0/{{version.raw}}/g' src/version/version.go
if: <1.2.804
- make GO_BUILD="go build" build-${PLATFORM}
- mkdir -p "{{ prefix }}"/bin
- mv ./bin/${BIN_DIR}/session-manager-plugin "{{prefix}}"/bin/
Expand All @@ -31,6 +34,8 @@ provides:
- bin/session-manager-plugin

test:
dependencies:
crates.io/semverator: "*"
script:
- test "$(session-manager-plugin --version)" = {{version}}
- semverator satisfies ">={{version.raw}}" "$(session-manager-plugin --version)"
- session-manager-plugin
Loading