SIGN IN SIGN UP

ast: parse import without package

Before, resolveRefs ignored Imports when Package is nil.
This caused `opa eval --import` option to be ignored without `--package` option.

This PR makes query compiler generate temporary package with name of ""
(empty string) when package is nil but import one or many imports are provided.

Fixes #3228

Signed-off-by: Hiro Osaki <hiroyuki.osaki@gmail.com>
H
Hiro Osaki committed
51b41725d6e20ca4ec9d64fc55d673d4a3585b75
Parent: 5406cb3
Committed by Torin Sandall <torinsandall@gmail.com> on 3/10/2021, 2:07:59 PM