-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce serve command #114
Conversation
internal/evaluator/evaluator.go
Outdated
// Parse combined YAML | ||
p := parser.New( | ||
parser.WithEnvironment(request.Environment), | ||
parser.WithFilesContents(request.FilesContents), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add GitHub FS in case environment contains CIRRUS_REPO_CLONE_TOKEN
, CIRRUS_REPO_NAME
, CIRRUS_REPO_OWNER
and CIRRUS_CHANGE_IN_REPO
. Seems this will require the parser to check explicit file contents first and if a file is not presented then check in fs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented in 258567d.
I'm not sure why we need to touch files contents or parser at all, though, since GitHub FS is only used by Starlark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ContentHash
should also check with fs
if filesContents
doesn't contain the required path.
PTAL at 3cdbd63. |
See #53.