Skip to content

Instantly share code, notes, and snippets.

@RickyCook
Created February 7, 2020 00:10
Show Gist options
  • Save RickyCook/6bf38804178e2688a5073f8b43f08b25 to your computer and use it in GitHub Desktop.
Save RickyCook/6bf38804178e2688a5073f8b43f08b25 to your computer and use it in GitHub Desktop.
CodePipeline hack to "support" symlinks
# CodePipeline doesn't support symlinks. They are reflected on
# disk as their target path in the file contents.
check_content_path = True
while check_content_path:
content = sql_path.read_text()
try:
new_sql_path = sql_path.parent.joinpath(content)
if new_sql_path.exists():
sql_path = new_sql_path
else:
check_content_path = False
except Exception:
check_content_path = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment