Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Be more atomic in our operations with example repos #86

Open
myitcv opened this issue Oct 25, 2018 · 1 comment
Open

Be more atomic in our operations with example repos #86

myitcv opened this issue Oct 25, 2018 · 1 comment

Comments

@myitcv
Copy link
Member

myitcv commented Oct 25, 2018

At the moment we follow this sort of pattern at the start of an example:

now=$(date +'%Y%m%d%H%M%S_%N')
githubcli repo renameIfExists $GITHUB_ORG/$r ${r}_$now
githubcli repo transfer $GITHUB_ORG/${r}_$now $GITHUB_ORG_ARCHIVE
githubcli repo create $GITHUB_ORG/$r

But this means that for the entire of the regen of the example we are "missing" the real repo.

Instead we should switch to doing renames and transfers at the end of the example which will minimise downtime.

@myitcv
Copy link
Member Author

myitcv commented Nov 9, 2018

Actually unclear whether we can get this to work, because doing work into a temporary repo will mean that resolution of import paths will fail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant