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:           Sat Aug 31 07:04:01 UTC 2024

Modified Files:
        pkgsrc/devel/rebar3: Makefile distinfo

Log Message:
rebar3: update to version 3.24.0

Changelog:

New features:

    Turn rich compiler errors on by default
    Tweak experimental manifest plugin to return ELP-compatible information

Bug fixes:

    make escriptize reproducible by setting timestamps for files in zip to unix epoch
    Log path when plugin template file read fails
    Prevent infinite compiler DAG growth
    Port Relx compatibility fix for escript files in OTP-27

Internal maintenance:

    Made rebar_utils:filtermap/2 to call directly lists:filtermap/2
    Cleaned up additional definitions in bootstrap
    Replaced rebar_utils:find_source/3 by a call to filelib:find_source/3 and Marked rebar_utils:find_source/3 as deprecated
    Fixing various typos in comments, types, and function names
    Bump hex_core and certifi dependencies
    Remove legacy hostname checks
    Replaced group_by_namespace/1 by a call to maps:groups_from_list/2
    Removed legacy OTP_RELEASE macro statements
    Removed legacy fun_stacktrace usage
    Removed unsused platform_define options
    Standardizing templates indentation

Regarding rich compiler errors, the change is optional.

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 on, but can be turned off optionally by configuring values with

{compiler_error_format, minimal}.

If this breaks your tooling, you may want to put it in your global rebar3 config file.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/rebar3/Makefile
cvs rdiff -u -r1.9 -r1.10 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.13 pkgsrc/devel/rebar3/Makefile:1.14
--- pkgsrc/devel/rebar3/Makefile:1.13   Mon May  6 16:51:21 2024
+++ pkgsrc/devel/rebar3/Makefile        Sat Aug 31 07:04:01 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2024/05/06 16:51:21 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2024/08/31 07:04:01 nikita Exp $
 
-DISTNAME=      rebar3-3.23.0
+DISTNAME=      rebar3-3.24.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=erlang/}
 DIST_SUBDIR=   rebar3

Index: pkgsrc/devel/rebar3/distinfo
diff -u pkgsrc/devel/rebar3/distinfo:1.9 pkgsrc/devel/rebar3/distinfo:1.10
--- pkgsrc/devel/rebar3/distinfo:1.9    Fri Apr 12 15:15:25 2024
+++ pkgsrc/devel/rebar3/distinfo        Sat Aug 31 07:04:01 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2024/04/12 15:15:25 nikita Exp $
+$NetBSD: distinfo,v 1.10 2024/08/31 07:04:01 nikita Exp $
 
-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
+BLAKE2s (rebar3/rebar3-3.24.0.tar.gz) = fa2797a22585f7658b80cc939200239a5abcd61ed46bfce464f6cd0772f06a4e
+SHA512 (rebar3/rebar3-3.24.0.tar.gz) = f6673d384e9f16b27e940ee738b15088007c1edd4b8cc87e4624ba66aead9fbe790f39797abd3996f4e234ca3536d4d0b9e4166bec6df21ec2ea887cfabcb2a6
+Size (rebar3/rebar3-3.24.0.tar.gz) = 821260 bytes



Home | Main Index | Thread Index | Old Index