Skip to content

feat(import): add path, metadata and hints tables to default config - #66

Merged
mscasso-scanoss merged 1 commit into
crc64from
feat/crc64-default-config-hints
Oct 13, 2026
Merged

mscasso-scanoss merged 1 commit into
crc64from
feat/crc64-default-config-hints

Conversation

@scanoss-qg

Copy link
Copy Markdown

Summary

Adds the tables produced by go-minr in crc64 mode to ldb_create_db_config_default(), so newly created <db>.conf files include them:

path: (KEYS=1, FIELDS=2)
metadata: (MZ=1, KEYS=1)
license_hints: (KEYS=1, FIELDS=6)
copyright_hints: (KEYS=1, FIELDS=6)
  • path: pathHash,path (only generated when hash length is 8). It was missing from the default config.
  • metadata: MZ table, same as sources/notices.
  • license_hints / copyright_hints: key,startOffset,endOffset,evidence,confidence,tag. Append-only (no OVERWRITE), multiple rows per key.

Note: the default config is only written when <db>.conf does not exist, so existing nodes still need these lines added manually.

🤖 Generated with Claude Code

Generated by go-minr in crc64 mode:
- path: pathHash,path (2 fields)
- metadata: MZ table keyed by file hash
- license_hints / copyright_hints: key,start,end,evidence,confidence,tag (6 fields)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mscasso-scanoss
mscasso-scanoss merged commit 897770e into crc64 Oct 13, 2026
1 check passed
@mscasso-scanoss
mscasso-scanoss deleted the feat/crc64-default-config-hints branch October 13, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants