Skip to content
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

Merged
merged 4 commits into from
Oct 2, 2020
Merged

Introduce serve command #114

merged 4 commits into from
Oct 2, 2020

Conversation

edigaryev
Copy link
Contributor

See #53.

@edigaryev edigaryev requested a review from fkorotkov October 1, 2020 10:07
// Parse combined YAML
p := parser.New(
parser.WithEnvironment(request.Environment),
parser.WithFilesContents(request.FilesContents),
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@edigaryev edigaryev requested a review from fkorotkov October 2, 2020 11:49
Copy link
Contributor

@fkorotkov fkorotkov left a 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.

@edigaryev
Copy link
Contributor Author

I think ContentHash should also check with fs if filesContents doesn't contain the required path.

PTAL at 3cdbd63.

@edigaryev edigaryev requested a review from fkorotkov October 2, 2020 16:28
@edigaryev edigaryev merged commit 520f64c into master Oct 2, 2020
@edigaryev edigaryev deleted the serve branch October 2, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants