Bug 271809 - net/gitup: load_config: error while parsing /usr/local/etc/gitup.conf: line: 35, column: 35 - 'unexpected newline', character: '0x0a'
Summary: net/gitup: load_config: error while parsing /usr/local/etc/gitup.conf: line: ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-03 17:36 UTC by Graham Perrin
Modified: 2023-06-04 01:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (eduardo)


Attachments
Konsole session (3.54 KB, text/plain)
2023-06-03 17:36 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2023-06-03 17:36:08 UTC
Created attachment 242581 [details]
Konsole session

root@fuji:~ # gitup release
load_config: error while parsing /usr/local/etc/gitup.conf: line: 35, column: 35 - 'unexpected newline', character: '0x0a'
root@fuji:~ #
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2023-06-03 17:52:14 UTC
(In reply to Graham Perrin from comment #0)

"release" : {
                "repository_path"  : "/src.git",
                "branch"           : "releng/13.2   <=== line 35 [1]
                "target_directory" : "/usr/src",
                "ignores"          : [
                        "sys/[^\/]+/conf",
                ],
        },

[1] it misses a '"' enclosing releng/13.2.

I remember fixed it in my previous tests.

Working on it.

Thanks
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2023-06-03 18:29:10 UTC
Fixed reinplace gitup.conf.sample releng field:

- releng/[0-9].+
+ releng/[0-9]+.[0-9]+
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-06-03 18:34:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f5ac9aed5dd4ddd966f1ac622fcde9ef53dd8056

commit f5ac9aed5dd4ddd966f1ac622fcde9ef53dd8056
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-06-03 18:30:26 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-06-03 18:32:52 +0000

    net/gitup: Fix reinplace gitup.conf.sample releng field

    PR:             271809

 net/gitup/Makefile         | 2 +-
 net/gitup/pkg-post-install | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2023-06-04 01:43:22 UTC
Fix confirmed (on the same system that I used to report the bug). Thanks!