You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe it may be a caching thing where the App Environment Version gets cached based on the git branch you use when you create the environment. If you switch branches at some point, this information is not updated when you do a terra status <appname>, it lists the branch name you used when you cloned the code.
The text was updated successfully, but these errors were encountered:
Yeah.... this one is tricky. I'm not sure we should store branch name at all in the metadata. It's very fast to extract it from the git repo itself.
That said we want to know the version, and we need to let the user choose the version, so we should...
Remove it from the environments config. Make sure the desired branch is still passed to the git clone in environment:add and the git checkout in environment:deploy.
// Get the actual tag or branch$environment->git_ref = trim(str_replace('refs/heads/', '', shell_exec("cd {$environment->repo_root}; git describe --tags --exact-match || git symbolic-ref -q HEAD")));
Implement getVersion() wherever we wanted to show environment version.
I believe it may be a caching thing where the App Environment Version gets cached based on the git branch you use when you create the environment. If you switch branches at some point, this information is not updated when you do a
terra status <appname>
, it lists the branch name you used when you cloned the code.The text was updated successfully, but these errors were encountered: