Bug 282149 - Mk/Uses/cabal.mk: make-use-cabal prints GH_TUPLE elements with ".git" suffixes
Summary: Mk/Uses/cabal.mk: make-use-cabal prints GH_TUPLE elements with ".git" suffixes
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-haskell (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-17 00:17 UTC by Yuri Victorovich
Modified: 2024-12-28 20:04 UTC (History)
1 user (show)

See Also:


Attachments
test-port.shar (1.52 KB, text/plain)
2024-10-17 00:17 UTC, Yuri Victorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2024-10-17 00:17:08 UTC
Created attachment 254299 [details]
test-port.shar

See the attached testcase port.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2024-10-17 00:21:01 UTC
For example, it prints the line:
> simplex-chat:aeson.git:aab7b5a14d6c5ea64c64dcaee418de1bb00dcc2b:aeson/dist-newstyle/src/aeson-dbbb7a8763942a5f \

instead of the line
> simplex-chat:aeson:aab7b5a14d6c5ea64c64dcaee418de1bb00dcc2b:aeson/dist-newstyle/src/aeson-dbbb7a8763942a5f \
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2024-10-17 05:05:49 UTC
How does the source line in the cabal.project look like that causes this behavior?
Comment 3 Gleb Popov freebsd_committer freebsd_triage 2024-10-17 05:09:10 UTC
Figured it out. It is upstream project who added these ".git", but we also should filter them out on our side.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-10-20 17:56:41 UTC
A commit in branch main references this bug:

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

commit 467dd9eb3e1e8360dccab57e059ecbd3807fd22c
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-10-20 17:55:10 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-10-20 17:55:40 +0000

    ports-mgmt/hs-cabal2tuple: Update to 2.0.1.0

    PR:             282149

 ports-mgmt/hs-cabal2tuple/Makefile | 5 ++---
 ports-mgmt/hs-cabal2tuple/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
Comment 5 Gleb Popov freebsd_committer freebsd_triage 2024-10-20 18:04:33 UTC
This should fix it, let me know if it works.