pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/rebar3



Module Name:    pkgsrc
Committed By:   nikita
Date:           Fri Apr 12 15:15:25 UTC 2024

Modified Files:
        pkgsrc/devel/rebar3: Makefile distinfo

Log Message:
rebar3: update to version 3.23.0

Changelog:

3.23.0

New Features:

    add a new shell completion provider
    zsh support for aliases in completion
    Add new 'shell_hooks_env' config to extend shell hooks' OS env vars
    Add (newer) Dialyzer info. about invalid_contract
    Add command rebar3 alias

Bug fixes:

    Bump relx and erlware commons versions
    REBAR_SRC_DIRS and REBAR_APP_DIRS fix by making rebar_dir:src_dirs/1 options default to ["src"]
    Eliminate use of experimental function code:lib_dir/2
    Fix "clean" hooks in non-umbrella apps and when override are presents
    Initial version of the Manifest plugin
    Make log_level entry in rebar.app work again
    Append . to --eval arg if missing
    Handle 'or' in versions in a primitive manner
    Fall back to reading versions from hex metadata
    Dedupe compiler DAG edge insertion for artifacts
    Add missing doc. for incremental on Dialyzer analysis
    rebar_utils: add metadata to primary logger config
    Prevent XRef issue when analysis runs on generated code
    Fix unicode output printed as charlist
    Rework argument parsing in do/as providers
    Fix for rebar3 shell in Erlang 26 when ShellArgs==undefined
    Erlang 26 custom shell fix
    Add app name to "OTP release ~ts or later is required" msg

3.22.1

This is a small patch release for some bugfixes:

    Defer hostname check to OTP when supported
    Print diagnostic when failing to get VSN with Git
    Add simple Erlang LS config

3.22.0

This release most importantly contains patches to fix blocking issues on Windows:

    Avoid setting a shell-encoding in OTP-26, which causes the shell command to hang on windows
    Support CRLF in shell ENV files

This release also contains an experimental and optional change that warrants a bit of explanation: Support rich compiler messages in errors and in warnings

Given the module:

-module(fake_mod).

-export([diagnostic/1]).

diagnostic(A) ->
    X = add(5 / 0),
    {X,X}.

add(X) -> X.

add(X, Y) -> X + Y.

Calling rebar3 compile can now yield:

...
===> Compiling apps/rebar/src/fake_mod.erl failed
   ┌─ apps/rebar/src/fake_mod.erl:
   │
 5 │  diagnostic(A) ->
   │             ╰── variable 'A' is unused

   ┌─ apps/rebar/src/fake_mod.erl:
   │
 6 │      X = add(5 / 0),
   │                ╰── evaluation of operator '/'/2 will fail with a 'badarith' exception

    ┌─ apps/rebar/src/fake_mod.erl:
    │
 11 │  add(X, Y) -> X + Y.
    │  ╰── function add/2 is unused

and in a terminal supporting color output:

By default, this format is turned off, but can be turned on optionally by configuring values with

{compiler_error_format, rich}.

You can get this enabled. You may want to put it in your global rebar3 config file. That being said, this may break some tooling that could parse rebar3-specific output. The default value is 
{compiler_error_format, minimal}. and putting that value back in should fix any breakage. We're also expecting color output to have a few bugs related to a rather naive heuristic used to delimit 
language constructs, but we wanted to make the feature available for feedback and this bug-fixing release was a decent opportunity.

This functionality relies on an expanded compiler API exposed by Rebar3, but since we're not yet quite sure what form we want it to take, we'll keep the new API undocumented in the short term.

3.21.0

New Features:

    Support OTP-26, Deprecate OTP-23 support.
    Add incremental dialyzer support for OTP-26

Various fixes:

    bumping a bunch of deps, including certificates, smaller patches in dependencies, and the following relx changes:
        Also set -dist_listen false for relx_nodetool calls
        Force use of nodetool if proto_dist set
        Only overwrite erl with dyn_erl if dyn_erl exists
    Add rebar_parallel pool, use in DAG scans which limits memory usage on large projects
    Maintain cth_log_redirect default in CT runs to show logger messages in HTML test logs
    Change license template to Markdown
    rebar3_dialyzer_format: Add missing message formatting
    Always dereference symbolic links when copying files in ct
    Add ?RTX_LOG macro option to top-level rebar.config
    fix help shell output, --eval is misindeted
    Ignore _vendor folder
    Do not ignore everything starting with underscore recursively
    scope local install VSN variable
    pkgs command should support empty lists


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/rebar3/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/rebar3/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/rebar3/Makefile
diff -u pkgsrc/devel/rebar3/Makefile:1.11 pkgsrc/devel/rebar3/Makefile:1.12
--- pkgsrc/devel/rebar3/Makefile:1.11   Wed Jan 11 22:07:46 2023
+++ pkgsrc/devel/rebar3/Makefile        Fri Apr 12 15:15:25 2024
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2023/01/11 22:07:46 nikita Exp $
+# $NetBSD: Makefile,v 1.12 2024/04/12 15:15:25 nikita Exp $
 
-DISTNAME=      rebar3-3.20.0
-PKGREVISION=   1
+DISTNAME=      rebar3-3.23.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=erlang/}
 DIST_SUBDIR=   rebar3

Index: pkgsrc/devel/rebar3/distinfo
diff -u pkgsrc/devel/rebar3/distinfo:1.8 pkgsrc/devel/rebar3/distinfo:1.9
--- pkgsrc/devel/rebar3/distinfo:1.8    Thu Nov 10 09:30:00 2022
+++ pkgsrc/devel/rebar3/distinfo        Fri Apr 12 15:15:25 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2022/11/10 09:30:00 nikita Exp $
+$NetBSD: distinfo,v 1.9 2024/04/12 15:15:25 nikita Exp $
 
-BLAKE2s (rebar3/rebar3-3.20.0.tar.gz) = 10abe99134187e0d28f5355b9c51078d222a80b9a8fca32d5b77b779d51e2cd0
-SHA512 (rebar3/rebar3-3.20.0.tar.gz) = 5e31a1458972ccd84fbaf778e7abe150dcab7aa95beda3cf2a67e35a891cc058d6b9d7c8319ea4169b4b24f9e5e8ca0dba18fa4a7ceb509be1ec9051a2321ce9
-Size (rebar3/rebar3-3.20.0.tar.gz) = 785992 bytes
+BLAKE2s (rebar3/rebar3-3.23.0.tar.gz) = 3605dc112d55cbab49c495e0585f8635bad5defcd0a1e159c707f027f699a76b
+SHA512 (rebar3/rebar3-3.23.0.tar.gz) = 4da1db8ed830c59fb322c1a652c2efe28d54e09ad74d12a87381ea7a7f13965b91815f383221831fbc14e6deed1a75db1039164f7df128a977d5b64048540cc3
+Size (rebar3/rebar3-3.23.0.tar.gz) = 807007 bytes



Home | Main Index | Thread Index | Old Index