fix: builder and sdk changes #81

Merged
marcel.henselin merged 85 commits from chore/update_goreleaser into alpha 2026-03-11 13:13:46 +00:00
2 changed files with 16 additions and 14 deletions
Showing only changes of commit 731957fcd0 - Show all commits

View file

@ -130,15 +130,15 @@ runs:
shell: bash
run: |
set -e
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
if [ "x${{ inputs.service_account_json_content }}" == "x" ]; then
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
exit 1
fi
echo "creating service account file '${{ inputs.service_account_json_file_path }}'"
echo "${{ inputs.service_account_json_content }}" > stackit/"${{ inputs.service_account_json_file_path }}"
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
if [ "x${{ inputs.service_account_json_content }}" == "x" ]; then
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
exit 1
fi
echo "creating service account file '${{ inputs.service_account_json_file_path }}'"
echo "${{ inputs.service_account_json_content }}" > stackit/"${{ inputs.service_account_json_file_path }}"
fi
ls -l stackit/"${{ inputs.service_account_json_file_path }}"
- name: Run acceptance test file

View file

@ -6,7 +6,6 @@ import (
"log/slog"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
@ -160,11 +159,14 @@ func readTestServiceAccountJsonFromFile(path string) (string, error) {
customPath, ok := os.LookupEnv("TF_ACC_SERVICE_ACCOUNT_FILE")
if !ok || customPath == "" {
path = serviceAccountFilePath
home, err := os.UserHomeDir()
if err != nil {
return "", fmt.Errorf("getting home directory: %w", err)
}
path = filepath.Join(home, path)
// TODO: check if we want to handle this with a home dir
/*
home, err := os.UserHomeDir()
if err != nil {
return "", fmt.Errorf("getting home directory: %w", err)
}
path = filepath.Join(home, path)
*/
} else {
path = customPath
}