Skip to content

Commit

Permalink
fix: look for version.txt in cwd, not where mozilla-taskgraph is inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
jcristau authored and ahal committed Mar 22, 2024
1 parent 0becb3f commit 942d402
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mozilla_taskgraph/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

from taskgraph.util.vcs import get_repository

here = os.path.abspath(os.path.dirname(__file__))


def default_parser(params):
repo_root = get_repository(here).path
repo_root = get_repository(os.getcwd()).path

with open(os.path.join(repo_root, "version.txt")) as f:
return f.read().strip()

0 comments on commit 942d402

Please sign in to comment.