Florian Guily
05/23/2022, 10:25 AMref
parameter but it is refering to a "SHA-1 value, tag, or branch name". Where can i find this SHA1 value of a given branchname ?emre
05/23/2022, 10:50 AMcommit-sha
, tag
and branch name
should all be interchangeable as far as github api is concerned. Just give the name of the branch and it should resolve successfully to the underlying commit sha.
To find the commit sha, run git log
while you are checked out to your branch. The entry at the top is yout commit sha. Should have something like (HEAD -> your_branch_name)
next to it, to identify that your branch currently refers to that specific commit.Florian Guily
05/23/2022, 10:53 AM"No commit found for SHA: {'dev'}"
emre
05/23/2022, 10:55 AMFlorian Guily
05/23/2022, 10:56 AMemre
05/23/2022, 11:12 AMFlorian Guily
05/23/2022, 11:13 AMemre
05/23/2022, 11:13 AM'dev'
within a python set?, the error including curly braces seems weird.Florian Guily
05/23/2022, 11:14 AMBRANCH = "dev"
with Flow(FLOW_NAME,
storage=set_storage(BRANCH),
run_config=set_run_config()) as flow:
emre
05/23/2022, 11:14 AMgg = GitHub(repo="PrefectHQ/prefect", path="/", ref="master")
with Flow("abcdef", storage=gg) as f:
ab()
gg.add_flow(f)
gg.get_flow("abcdef")
Florian Guily
05/23/2022, 11:15 AMdef set_storage(branch: str) -> GitHub:
return GitHub(
repo=f"my/repo",
path=f"my/path.py",
ref=branch,
access_token_secret="GITHUB_ACCESS_TOKEN",
)
emre
05/23/2022, 11:16 AMFlorian Guily
05/23/2022, 12:22 PMemre
05/23/2022, 12:32 PMset_storage
call receives 2 inputs, but the implementation expects one. Probably happened while you are changing your code for slack, but maybe we lost the erroneous bit in translation? could you double check?Florian Guily
05/23/2022, 12:35 PMemre
05/23/2022, 12:41 PMFlorian Guily
05/23/2022, 12:44 PM{"branch"}
as a ref (i understand the error now). Despite changing the code, it seems that it keep executing a "cached" version of this function and i can't understand whypip install .
to update the changes and register the flow again to finally have an up to date set_storage
!Anna Geller
05/23/2022, 2:39 PMpip install -e .
Florian Guily
05/23/2022, 2:58 PM