Skip to content

correct path to conf.py in makeversionhdr.py#792

Merged
tannewt merged 1 commit into
adafruit:masterfrom
larsks:bug/791
May 2, 2018
Merged

correct path to conf.py in makeversionhdr.py#792
tannewt merged 1 commit into
adafruit:masterfrom
larsks:bug/791

Conversation

@larsks
Copy link
Copy Markdown

@larsks larsks commented May 2, 2018

the py/makeversionhdr.py script was looking for conf.py in the docs/ directory, but this was relocated in 46e7f8e. This used by the fallback get_version_info_from_docs_conf method, which is only used when git isn't available in the build environment, which is probably why nobody ever noticed this bug before.

Closes #791.

the py/makeversionhdr.py script was looking for `conf.py` in the
`docs/` directory, but this was relocated in 46e7f8e.  This is used by
the fallback `get_version_info_from_docs_conf` method, which is only
consulted if `git` is unavailable in the build environment.

Closes micropython#791.
@tannewt
Copy link
Copy Markdown
Member

tannewt commented May 2, 2018

Thank you for the fix!

I'd recommend using git to keep your local copy up to date. I'll merge this though in the meantime.

Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 61d3dd8 into adafruit:master May 2, 2018
@larsks
Copy link
Copy Markdown
Author

larsks commented May 2, 2018

I'd recommend using git to keep your local copy up to date.

Oh, no worries; I do. Submitting PRs is difficult without it :). But I run my builds in a Docker container (https://hub.docker.com/r/larsks/docker-image-esp-open-sdk/), which simply didn't have git installed...which is why I was hitting this seldom used code path.

FWIW, I've updated the image to include git.

@tannewt
Copy link
Copy Markdown
Member

tannewt commented May 2, 2018

Cool cool. Thanks for the fix!

larsks added a commit to larsks/docker-image-esp-open-sdk that referenced this pull request May 2, 2018
the circuitpython (https://github.com/adafruit/circuitpython)
Makefiles expect both `which` and `git` to be available.  Also
addressed on the other side by adafruit/circuitpython#792 and
adafruit/circuitpython#794.
larsks added a commit to larsks/docker-image-esp-open-sdk that referenced this pull request May 2, 2018
the circuitpython (https://github.com/adafruit/circuitpython)
Makefiles expect both `which` and `git` to be available.  Also
addressed on the other side by adafruit/circuitpython#792 and
adafruit/circuitpython#794.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants