Skip to content

Commit

Permalink
Fix resolving proto imports when 1 is a subsequence (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier authored Oct 16, 2024
1 parent af08e60 commit 55f48d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified internal/bundles/assets/import_proto_cli.arraiz
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/importer/proto/proto_to_sysl.arrai
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let packageToApp = \package //seq.sub(".", "_", package);
# `import` the import path as it appears in a proto file.
# `imports` a map of all files in the module.
let resolveImport = \import \imports
let matches = (imports where //seq.contains(import, .@));
let matches = (imports where //seq.has_prefix(import, .@));
cond {
matches: (matches single).@,
_: //error($`Unresolvable import: ${import} not in [${imports => .@ orderby .::, }]`)
Expand Down

0 comments on commit 55f48d0

Please sign in to comment.