Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented May 26, 2021

This PR adds .netrc to the .gitignore file in the new project template.

Motivation:

As discussed in swiftlang/swift-evolution#1319, a user may inadvertently expose credentials by checking in their project's .netrc file. Adding this entry to the .gitignore file in the new project template significantly minimizes the possibility of the user leaking credentials in the future.

Modifications:

+ .netrc

Result:

After this change, all future projects created by running swift package init will default to ignoring .netrc files.

Existing packages will be unaffected.

@tomerd
Copy link
Contributor

tomerd commented May 26, 2021

@swift-ci please smoke test

@tomerd tomerd merged commit 9b0917f into main May 26, 2021
@mattt mattt deleted the ignore-netrc branch May 27, 2021 16:22
@mattt mattt mentioned this pull request Oct 6, 2021
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.

4 participants