~torresjrjr/hare

2a3bba8623e3c7c5f874ab429bbd278c760bb223 — Drew DeVault 22 days ago 554a40c
hare::module: fix false cache busts

The end of this loop checks for any extra tokens in the tokenizer and
assumes it's an invalid manifest, busting the cache unnecessarily.

Signed-off-by: Drew DeVault <sir@cmpwn.com>
1 files changed, 3 insertions(+), 0 deletions(-)

M hare/module/manifest.ha
M hare/module/manifest.ha => hare/module/manifest.ha +3 -0
@@ 254,6 254,9 @@ export fn manifest_load(ctx: *context, ident: ast::ident) (manifest | error) = {
			// Implementation detail: tags always follows module
			// directive for a given module version
			assert(found);

			// Drain tokenizer
			for (strings::next_token(&tok) is str) void;
		case =>
			return manifest;
		};