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

Filter unwanted files from template repository whilst initialising #1

Merged
merged 7 commits into from
Feb 13, 2020

Conversation

phamann
Copy link
Member

@phamann phamann commented Feb 11, 2020

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 the LICENSE, 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 for compute init which we were waiting for the repository to be public before writing.

@@ -3,16 +3,16 @@ fastly

# Fastly package format files
**/fastly.toml
!pkg/packag/testdata/build/fastly.toml
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

☝️

Copy link
Member Author

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?

Copy link
Contributor

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 :)

pkg/compute/compute_test.go Outdated Show resolved Hide resolved
pkg/compute/compute_test.go Outdated Show resolved Hide resolved
pkg/compute/compute_test.go Outdated Show resolved Hide resolved
pkg/compute/compute_test.go Outdated Show resolved Hide resolved
pkg/compute/init.go Outdated Show resolved Hide resolved
name = "edge-compute-default-rust-template"
version = "0.1.0"
authors = ["phamann <patrick@fastly.com>"]
edition = "2018"
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Member Author

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

Copy link
Contributor

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 👍

phamann and others added 5 commits February 13, 2020 10:27
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>
@phamann phamann merged commit fa4d45e into master Feb 13, 2020
@phamann phamann deleted the phamann/filter-project-files branch February 13, 2020 10:46
@phamann phamann added the bug Something isn't working label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants