calm-agent-5023201/18/2022, 6:29 AM
here’s the config:
error":"failed to create local workspace: failed to create workspace, unable to enlist in git repo: unable to checkout branch: reference not found"
this is a private gitlab repo but i have confirmed auth is successful and if i point it at
spec: projectRepo: <https://gitlab.com/mycompany/sre/pko-poc.git> stack: mycompany/infra-apps/poc branch: "refs/heads/main" #this works for some reason but /refs/heads/poc results in reference not found #branch: "poc" #this also results in reference not found repoDir: infra-apps envRefs: PULUMI_ACCESS_TOKEN: type: Secret secret: name: pulumi-api-secret key: accessToken gitAuth: accessToken: type: Secret secret: name: git-secret key: privateToken
then it does update the pulumi project thanks
sparse-park-6896701/18/2022, 5:28 PM
? Make sure
git show-ref poc
shows up and that is what you want to refer to in the branch (no leading
calm-agent-5023201/18/2022, 8:55 PM
git show-ref poc 45a9403d4cd84411f6b14db1718c7638b9896e0a refs/heads/poc 45a9403d4cd84411f6b14db1718c7638b9896e0a refs/remotes/origin/poc
branch: “refs/heads/main” #this works for some reason but /refs/heads/poc results in reference not foundyeah that’s a typo in my comment…. i tested without the leading /
sparse-park-6896701/21/2022, 1:23 AM
as the reference. The way go automation api for pulumi checks out the repo, only the default branch is available locally and other refs are not pulled down. It should work with the above variant.
calm-agent-5023201/26/2022, 4:46 AM