You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2023/03/09 22:21:56 UTC
[couchdb] branch main updated: Fix erlfmt-format on Windows (#4463)
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 774acb85d Fix erlfmt-format on Windows (#4463)
774acb85d is described below
commit 774acb85ddc0bf8d471f4ea452f1eeaccaf9115b
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Thu Mar 9 23:21:47 2023 +0100
Fix erlfmt-format on Windows (#4463)
The erlfmt executable likes POSIX paths on Windows too.
---
Makefile.win | 4 ++--
dev/format_lib.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile.win b/Makefile.win
index c9990c4ff..1dae3612c 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -181,12 +181,12 @@ just-eunit:
@$(REBAR) -r eunit $(EUNIT_OPTS)
# target: erlfmt-check - Check Erlang source code formatting
-erlfmt-check: export ERLFMT_PATH := $(ERLFMT)
+erlfmt-check: export ERLFMT_PATH = $(ERLFMT)
erlfmt-check:
@$(PYTHON) dev\format_check.py
# target: erlfmt-format - Apply Erlang source code format standards automatically
-erlfmt-format: export ERLFMT_PATH := $(ERLFMT)
+erlfmt-format: export ERLFMT_PATH = $(ERLFMT)
erlfmt-format:
@$(PYTHON) dev\format_all.py
diff --git a/dev/format_lib.py b/dev/format_lib.py
index 3db0057fc..465aeedca 100644
--- a/dev/format_lib.py
+++ b/dev/format_lib.py
@@ -48,7 +48,7 @@ def get_source_paths():
):
path = pathlib.Path(item)
if path.parent != curdir:
- yield str(path.parent.joinpath("*.erl"))
+ yield str(path.parent.joinpath("*.erl").as_posix())
curdir = path.parent
if curdir is not None:
- yield str(curdir.joinpath("*.erl"))
+ yield str(curdir.joinpath("*.erl").as_posix())