Skip to content

Commit aaaf555

Browse files
authored
fix arm64 build and version metadata (#175)
This change ensures we build for both arm64 and amd64 as defined in the build matrix. In #155, we removed some environment variables in the build workflow file that were required to properly build the executable for all systems defined in the build matrix. This caused the `make zip` command to always rely on the default values defined in the makefile, causing problems with the used goarch and version (GOOS?=linux, GOARCH?=amd64, VERSION?=0.0.0-dev). Closes #174
1 parent b60e4aa commit aaaf555

5 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868

6969
- name: Build
7070
id: build-binary
71+
# these env vars are required for the make command to build for each arch
72+
env:
73+
GOOS: ${{ matrix.goos }}
74+
GOARCH: ${{ matrix.goarch }}
75+
VERSION: ${{ needs.get-product-version.outputs.product-version }}
7176
run: |
7277
ZIP_FILE="${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip"
7378

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.3
1+
1.24.4

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
## Unreleased
22

3+
## 0.13.1 (Jun 23, 2025)
4+
5+
LAYERS:
6+
```
7+
arn:aws:lambda:<AWS_REGION>:634166935893:layer:vault-lambda-extension:23
8+
arn:aws:lambda:<AWS_REGION>:634166935893:layer:vault-lambda-extension-arm64:11
9+
```
10+
11+
BUGS:
12+
13+
* fix arm64 build and version metadata (https://github.com/hashicorp/vault-lambda-extension/pull/175)
14+
315
## 0.13.0 (Jun 5, 2025)
416

517
LAYERS:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Lambda function, depending on your desired architecture.
1818
amd64 (x86_64):
1919

2020
```text
21-
arn:aws:lambda:<your-region>:634166935893:layer:vault-lambda-extension:22
21+
arn:aws:lambda:<your-region>:634166935893:layer:vault-lambda-extension:23
2222
```
2323

2424
arm64:
2525

2626
```text
27-
arn:aws:lambda:<your-region>:634166935893:layer:vault-lambda-extension-arm64:10
27+
arn:aws:lambda:<your-region>:634166935893:layer:vault-lambda-extension-arm64:11
2828
```
2929

3030
Where region may be any of

quick-start/terraform/lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "aws_lambda_function" "function" {
1010
runtime = "provided.al2"
1111
architectures = ["x86_64"]
1212
layers = var.local_extension ? ["${aws_lambda_layer_version.vle[0].arn}"] : [
13-
"arn:aws:lambda:${var.aws_region}:634166935893:layer:vault-lambda-extension:22"
13+
"arn:aws:lambda:${var.aws_region}:634166935893:layer:vault-lambda-extension:23"
1414
]
1515

1616
environment {

0 commit comments

Comments
 (0)