-
Notifications
You must be signed in to change notification settings - Fork 61
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
Filter unwanted files from template repository whilst initialising #1
Conversation
@@ -3,16 +3,16 @@ fastly | |||
|
|||
# Fastly package format files | |||
**/fastly.toml | |||
!pkg/packag/testdata/build/fastly.toml |
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.
😬
}{ | ||
// TODO(pb): wait until package template repo is public |
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.
☝️
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'm slightly confused, the repo is now public, hence why I've written these tests?
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 know, I was just having a little laugh, please ignore :)
name = "edge-compute-default-rust-template" | ||
version = "0.1.0" | ||
authors = ["phamann <patrick@fastly.com>"] | ||
edition = "2018" |
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.
👀
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.
This is the correct edition. See here for more info: https://doc.rust-lang.org/edition-guide/editions/index.html
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.
Oh, it's the Rust edition, I see 👍
Co-Authored-By: Peter Bourgon <peterbourgon@users.noreply.github.com>
Co-Authored-By: Peter Bourgon <peterbourgon@users.noreply.github.com>
Co-Authored-By: Peter Bourgon <peterbourgon@users.noreply.github.com>
TL;DR
A by-product of open sourcing the default template that we clone during
compute init
is we now also copy certain extraneous files that don't make sense being in a newly created project, such as theLICENSE
,SECURITY.md
and.github
workflow directory. This PR attempts to solve this my creating a list of files we filter out during the copying process. It also adds tests forcompute init
which we were waiting for the repository to be public before writing.