Skip to content

fix: local file:// prefix is no longer mandatory#66

Merged
eddie-knight merged 1 commit intogemaraproj:mainfrom
eddie-knight:main
Apr 30, 2026
Merged

fix: local file:// prefix is no longer mandatory#66
eddie-knight merged 1 commit intogemaraproj:mainfrom
eddie-knight:main

Conversation

@eddie-knight
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Eddie Knight <knight@linux.com>
@github-actions github-actions Bot added the fix label Apr 29, 2026
Copy link
Copy Markdown

@hbraswelrh hbraswelrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left two non-blocking nits. The comments are for consistency with the other references to TestData and testData.

Lexicon: &gemara.ArtifactMapping{ReferenceId: "lex"},
MappingReferences: []gemara.MappingReference{
{Id: "lex", Title: "L", Version: "1", Url: lexiconFileURL(t, "lexicon_good.yaml")},
{Id: "lex", Title: "L", Version: "1", Url: lexiconTestdataAbsPath(t, "lexicon_good.yaml")},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{Id: "lex", Title: "L", Version: "1", Url: lexiconTestdataAbsPath(t, "lexicon_good.yaml")},
{Id: "lex", Title: "L", Version: "1", Url: lexiconTestDataAbsPath(t, "lexicon_good.yaml")},

@eddie-knight this may be a nit, but the lexiconTestdataAbsPath is not kebab-case consistent. I'd suggest replacing with lexiconTestDataAbsPath.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't a required change. Nevermind. Testdata is considered a single word.


func TestLoadLexiconFromURI_file(t *testing.T) {
entries, err := loadLexiconFromURI(context.Background(), lexiconFileURL(t, "lexicon_good.yaml"))
entries, err := loadLexiconFromURI(context.Background(), lexiconTestdataAbsPath(t, "lexicon_good.yaml"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
entries, err := loadLexiconFromURI(context.Background(), lexiconTestdataAbsPath(t, "lexicon_good.yaml"))
entries, err := loadLexiconFromURI(context.Background(), lexiconTestDataAbsPath(t, "lexicon_good.yaml"))

Same comment for consistent kebabCase.

@eddie-knight eddie-knight marked this pull request as ready for review April 29, 2026 22:47
@eddie-knight eddie-knight requested a review from a team as a code owner April 29, 2026 22:47
Copy link
Copy Markdown
Contributor

@jpower432 jpower432 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jpower432

This comment was marked as duplicate.

@eddie-knight eddie-knight merged commit 686f729 into gemaraproj:main Apr 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants