Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar should expand VCS version in the top directory, if possible #173

Closed
wants to merge 2 commits into from

Conversation

uwiger
Copy link
Contributor

@uwiger uwiger commented Jan 12, 2012

When a VCS tag is present in the reltool.config file, rebar tries
to expand it. However, it does so in the rel/ directory, which
(at least for git) may not reveal the latest version.

A problem is that if rebar was called with cd rel; rebar generate,
rebar will not know what the top directory is. This can be solved
by instead running rebar generate skip_deps=true from the top
directory. This patch makes rebar_rel_utils use base_dir instead
of the directory of reltool.config.

When a VCS tag is present in the reltool.config file, rebar tries
to expand it. However, it does so in the rel/ directory, which
(at least for git) may not reveal the latest version.

A problem is that if rebar was called with `cd rel; rebar generate`,
rebar will not know what the top directory is. This can be solved
by instead running `rebar generate skip_deps=true` from the top
directory. This patch makes rebar_rel_utils use base_dir instead
of the directory of reltool.config.
@hyperthunk
Copy link
Contributor

+1.

@uwiger uwiger closed this Apr 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants