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

Hack around rebar3 compiling your project to output its version #256

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

paulo-ferraz-oliveira
Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Feb 22, 2024

Description

What are we fixing?

If you're withing "version-file": ".tool-versions" after you uses "actions/checkout", it's likely rebar3 from setup-beam is compiling your project just to output its
version.

This commit prevents that as per
erlang/rebar3#2865 (comment)

@paulo-ferraz-oliveira paulo-ferraz-oliveira force-pushed the fix/rebar-3-version-compilation branch 4 times, most recently from 3901b15 to 8ded306 Compare February 22, 2024 22:30
What are we fixing?

If you're with'ing "version-file": ".tool-versions" after you
_use_ "actions/checkout", it's likely `rebar3` from `setup-beam`
is compiling your project just to output its
version

This commit prevents that as per
erlang/rebar3#2865 (comment)
@paulo-ferraz-oliveira paulo-ferraz-oliveira force-pushed the fix/rebar-3-version-compilation branch from 8ded306 to f2415ce Compare February 22, 2024 22:34
Comment on lines +10721 to +10724
const env = {
REBAR_GLOBAL_CONFIG_DIR: '/fake-dir',
REBAR_CONFIG: 'fake.config',
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the relevant change.

Copy link
Member

@starbelly starbelly left a comment

Choose a reason for hiding this comment

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

🥳

@starbelly starbelly merged commit c36fc0c into main Mar 3, 2024
60 checks passed
@starbelly starbelly deleted the fix/rebar-3-version-compilation branch March 3, 2024 23:49
@paulo-ferraz-oliveira
Copy link
Collaborator Author

Release in v1.17.5. v1 and v1.17 moved to the same commit.

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