Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@saleyn
Copy link

@saleyn saleyn commented Jan 14, 2023

  • Add handling of cases when the env key is not found in the app file.

  • A new {env_key, ignore} option to ignore modification of the env key.

  • Add a new {vsn_format, VsnFmt} option that controls modification
    of the vsn key in the app file (default: ignore). This option may be extended
    in the future to support additional version formats.
    VsnFmt:

    • ignore - no modification
    • ggitver - the output of git describe --always --tags --long
    • gitver - same as above, but the g prefix is removed from the
      trailing git commit hash
  • Fix dialyzer and xref issues - the old code was based on rebar 3.15.0, which was
    no longer working with the latest rebar (3.20.0).

@soranoba
Copy link
Owner

In order to be included in the mainstream of this repository, please explain why it is necessary, what kind of function it is, and create a PR with a minimal diff.

@saleyn saleyn changed the title Add vsn_type option Add a new vsn_type option that controls the format of the app vsn Jan 23, 2023
@saleyn
Copy link
Author

saleyn commented Jan 23, 2023

The added changes have been documented in the PR above. It is fully backward compatible. Please merge, and publish to hex.

@saleyn saleyn changed the title Add a new vsn_type option that controls the format of the app vsn Add a new vsn_format option that controls the format of the app vsn Jan 23, 2023
@saleyn saleyn force-pushed the master branch 3 times, most recently from 080ce34 to 4427c4f Compare January 23, 2023 14:34
* Add a new `{env_key, ignore}` option to ignore modification of the
  `env` key, if one is not found in the app file.

* Add a new `{vsn_format, VsnType}` option that controls modification
  of the `vsn` key in the app file (default: ignore).
  VsnType:
  * ignore  - no modification
  * ggitver - the output of `git describe --always --tags --long`
  * gitver  - same as above, but the `g` prefix is removed from the
              trailing git commit hash
@saleyn
Copy link
Author

saleyn commented Jan 23, 2023

Also squashed the PR commits into a single 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