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

Add the ability to initialise a compute project from a specific branch #14

Merged
merged 2 commits into from
Apr 6, 2020

Conversation

phamann
Copy link
Member

@phamann phamann commented Apr 6, 2020

TL;DR

As requested by @katie-martin-fastly, this adds the ability to clone from a specific template repository branch when initialising a new Compute@Edge project via compute init. We then use this logic to ensure that the default template is pointing to a named branch. This ensures we maintain compatibility with the fastly guest crate API.

Note

  • I'm keeping the --branch flag hidden for the time being as we don't want to add confuse to the normal path of supplying templates repo urls.
  • I also cleaned up the compute init tests and fixed a rendering issue with author, but are small enough changes that don't warrant their own PR.

pkg/compute/init.go Outdated Show resolved Hide resolved
pkg/compute/init.go Show resolved Hide resolved
Copy link
Contributor

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!! This looks wonderful.

@phamann phamann merged commit ea5d06e into master Apr 6, 2020
@phamann phamann deleted the phamann/template-branch branch April 6, 2020 13:26
@phamann phamann added the enhancement New feature or request label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants