Skip to content

fix(rel): hex pub #360

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

Merged
merged 4 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include rel.mk
REBAR := rebar3

QUICER_VERSION ?= $(shell git describe --tags --always)
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ build() {
}

download() {
TAG="$(git describe --tags | head -1)"
TAG=${QUICER_VERSION:-"$(git describe --tags | head -1)"}
URL="https://github.com/emqx/quic/releases/download/$TAG/$PKGNAME"
mkdir -p _packages
if [ ! -f "_packages/${PKGNAME}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion pkgname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case "$UNAMES" in
esac

ARCH="$(uname -m)"
VSN="$(git describe --tags --exact-match | head -1)"
VSN=${QUICER_VERSION:-"$(git describe --tags --exact-match | head -1)"}

OPENSSL=${QUICER_TLS_VER:-openssl}

Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{pre_hooks, [{"(linux|darwin|solaris)", compile, "make build-nif"}]}.

{deps, [{snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.10"}}}]}.
{deps, [{snabbkaffe, "1.0.10"}]}.

{profiles, [
{test, [
Expand Down
5 changes: 5 additions & 0 deletions rel.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set release vsn for hex.pm.
# this file should be empty in git for dev.

#QUICER_VERSION := x.y.z

6 changes: 4 additions & 2 deletions src/quicer.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
"CMakeLists.txt",
"Makefile",
"get-msquic.sh",
"c_build",
"build.sh",
"pkgname.sh"
"pkgname.sh",
"templates",
"msquic_patches",
"rel.mk"
]},
{exclude_regexps, ["priv/.*.so"]}
]}.
6 changes: 2 additions & 4 deletions test/prop_quicer_nif.erl
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,8 @@ prop_async_accept_2_with_active() ->
{valid_listen_handle(), oneof([boolean(), integer()])},
begin
case quicer_nif:async_accept(LH, #{active => ActiveN}) of
{ok, ConnHandle} ->
quicer:close_connection(ConnHandle),
Destroy(),
collect(ok, quicer:getopt(ConnHandle, active) >= 0);
{ok, LH} ->
true;
E ->
Destroy(),
collect(E, true)
Expand Down
Loading