spacelift-io / spacectl

Spacelift client and CLI
MIT License
131 stars 35 forks source link

local-preview cannot create run #224

Closed wjbabicz closed 6 months ago

wjbabicz commented 6 months ago

> spacectl -v spacectl version 0.30.0

Getting this error when trying to execute a local-preview:

> spacectl stack local-preview --id github-private Packing local workspace... Uploading local workspace... 126.48 KiB / 126.48 KiB [-----------------------------------------------------------------------------------------] 100.00% 271.54 KiB p/s 700ms 2024/04/09 15:50:15 could not create run: could not persist run: commit author name must not be empty

I can confirm the author name is set globally in my git config, not sure if there are any configuration steps I'm missing. Can execute other commands in the spacectl (list stacks, etc), so I'm definitely logged in and the token is valid.

marcinwyszynski commented 6 months ago

We are aware of this regression. It affects users for whom the IdP connected to Spacelift does not return a full name (or else, returns an empty string). This is not a spacectl issue per se, this is an overly strict backend validation. Please stay tuned for the fix, and apologies for the inconvenience caused.

wjbabicz commented 6 months ago

No worries -- appreciate the response! 😄

TheMacies commented 6 months ago

@wjbabicz We've addressed the regression on the backend side. Please check if the issue has been resolved.

wjbabicz commented 6 months ago

@TheMacies Looking good! TYVM