Skip to content

Commit 106bcd3

Browse files
authored
update to match new default branch name (hashicorp#27909)
1 parent 2b252ac commit 106bcd3

20 files changed

Lines changed: 30 additions & 30 deletions

‎.circleci/config.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- slack/status:
8080
fail_only: true
81-
only_for_branches: master
81+
only_for_branches: main
8282

8383
go-test-e2e:
8484
executor:
@@ -108,7 +108,7 @@ jobs:
108108

109109
- slack/status:
110110
fail_only: true
111-
only_for_branches: master
111+
only_for_branches: main
112112

113113
# combine code coverage results from the parallel circleci executors
114114
coverage-merge:
@@ -193,14 +193,14 @@ jobs:
193193
working_directory: terraform
194194
command: |
195195
# Figure out what the current branch forked from. Compare against
196-
# master and the set of "vX.Y" branches, and choose whichever branch
196+
# main and the set of "vX.Y" branches, and choose whichever branch
197197
# we're the *fewest* commits ahead of.
198198
# The point here isn't to perfectly predict where this will be
199199
# merged; all we really care about is determining which commits are
200200
# *unique to this PR,* so we don't accidentally complain about
201201
# problems you had nothing to do with.
202202
PARENT_BRANCH=$(
203-
for br in $(git branch -rl --format='%(refname:short)' | grep -E '^origin/(master|v\d+\.\d+)$'); do
203+
for br in $(git branch -rl --format='%(refname:short)' | grep -E '^origin/(main|v\d+\.\d+)$'); do
204204
new_commits=$(git rev-list --first-parent ^${br} HEAD | wc -l);
205205
echo "${br} ${new_commits}";
206206
done \
@@ -290,7 +290,7 @@ workflows:
290290
filters:
291291
branches:
292292
only:
293-
- master
293+
- main
294294
- /^v\d+\.\d+$/ # v0.11, v0.12, etc.
295295

296296
build-distros:

‎.github/CONTRIBUTING.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ There are some areas of Terraform which are of special concern to the Terraform
6262

6363
The Terraform team is not merging PRs for new state storage backends at the current time. Our priority regarding state storage backends is to find maintainers for existing backends and remove those backends without maintainers.
6464

65-
Please see the [CODEOWNERS](https://github.com/hashicorp/terraform/blob/master/CODEOWNERS) file for the status of a given backend. Community members with an interest in a particular standard backend are welcome to help maintain it.
65+
Please see the [CODEOWNERS](https://github.com/hashicorp/terraform/blob/main/CODEOWNERS) file for the status of a given backend. Community members with an interest in a particular standard backend are welcome to help maintain it.
6666

6767
Currently, merging state storage backends places a significant burden on the Terraform team. The team must set up an environment and cloud service provider account, or a new database/storage/key-value service, in order to build and test remote state storage backends. The time and complexity of doing so prevents us from moving Terraform forward in other ways.
6868

@@ -80,25 +80,25 @@ From our [documentation](https://www.terraform.io/docs/provisioners/index.html):
8080
8181
The Terraform team is in the process of building a way forward which continues to decrease reliance on provisioners. In the mean time however, as our documentation indicates, they are a tool of last resort. As such expect that PRs and issues for provisioners are not high in priority.
8282

83-
Please see the [CODEOWNERS](https://github.com/hashicorp/terraform/blob/master/CODEOWNERS) file for the status of a given provisioner. Community members with an interest in a particular provisioner are welcome to help maintain it.
83+
Please see the [CODEOWNERS](https://github.com/hashicorp/terraform/blob/main/CODEOWNERS) file for the status of a given provisioner. Community members with an interest in a particular provisioner are welcome to help maintain it.
8484

8585
#### Maintainers
8686

8787
Maintainers are key contributors to our Open Source project. They contribute their time and expertise and we ask that the community take extra special care to be mindful of this when interacting with them.
8888

89-
For code that has a listed maintainer or maintainers in our [CODEOWNERS](https://github.com/hashicorp/terraform/blob/master/CODEOWNERS) file, the Terraform team will highlight them for participation in PRs which relate to the area of code they maintain. The expectation is that a maintainer will review the code and work with the PR contributor before the code is merged by the Terraform team.
89+
For code that has a listed maintainer or maintainers in our [CODEOWNERS](https://github.com/hashicorp/terraform/blob/main/CODEOWNERS) file, the Terraform team will highlight them for participation in PRs which relate to the area of code they maintain. The expectation is that a maintainer will review the code and work with the PR contributor before the code is merged by the Terraform team.
9090

9191
There is no expectation on response time for our maintainers; they may be indisposed for prolonged periods of time. Please be patient. Discussions on when code becomes "unmaintained" will be on a case-by-case basis.
9292

93-
If an an unmaintained area of code interests you and you'd like to become a maintainer, you may simply make a PR against our [CODEOWNERS](https://github.com/hashicorp/terraform/blob/master/CODEOWNERS) file with your github handle attached to the approriate area. If there is a maintainer or team of maintainers for that area, please coordinate with them as necessary.
93+
If an an unmaintained area of code interests you and you'd like to become a maintainer, you may simply make a PR against our [CODEOWNERS](https://github.com/hashicorp/terraform/blob/main/CODEOWNERS) file with your github handle attached to the approriate area. If there is a maintainer or team of maintainers for that area, please coordinate with them as necessary.
9494

9595
### Pull Request Lifecycle
9696

9797
1. You are welcome to submit a [draft pull request](https://github.blog/2019-02-14-introducing-draft-pull-requests/) for commentary or review before it is fully completed. It's also a good idea to include specific questions or items you'd like feedback on.
9898
2. Once you believe your pull request is ready to be merged you can create your pull request.
9999
3. When time permits Terraform's core team members will look over your contribution and either merge, or provide comments letting you know if there is anything left to do. It may take some time for us to respond. We may also have questions that we need answered about the code, either because something doesn't make sense to us or because we want to understand your thought process. We kindly ask that you do not target specific team members.
100100
4. If we have requested changes, you can either make those changes or, if you disagree with the suggested changes, we can have a conversation about our reasoning and agree on a path forward. This may be a multi-step process. Our view is that pull requests are a chance to collaborate, and we welcome conversations about how to do things better. It is the contributor's responsibility to address any changes requested. While reviewers are happy to give guidance, it is unsustainable for us to perform the coding work necessary to get a PR into a mergeable state.
101-
5. Once all outstanding comments and checklist items have been addressed, your contribution will be merged! Merged PRs may or may not be included in the next release based on changes the Terraform teams deems as breaking or not. The core team takes care of updating the [CHANGELOG.md](https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md) as they merge.
101+
5. Once all outstanding comments and checklist items have been addressed, your contribution will be merged! Merged PRs may or may not be included in the next release based on changes the Terraform teams deems as breaking or not. The core team takes care of updating the [CHANGELOG.md](https://github.com/hashicorp/terraform/blob/main/CHANGELOG.md) as they merge.
102102
6. In some cases, we might decide that a PR should be closed without merging. We'll make sure to provide clear reasoning when this happens. Following the recommended process above is one of the ways to ensure you don't spend time on a PR we can't or won't merge.
103103

104104
#### Getting Your Pull Requests Merged Faster
@@ -139,7 +139,7 @@ If you wish to work on the Terraform CLI source code, you'll first need to insta
139139

140140
At this time the Terraform development environment is targeting only Linux and Mac OS X systems. While Terraform itself is compatible with Windows, unfortunately the unit test suite currently contains Unix-specific assumptions around maximum path lengths, path separators, etc.
141141

142-
Refer to the file [`.go-version`](https://github.com/hashicorp/terraform/blob/master/.go-version) to see which version of Go Terraform is currently built with. Other versions will often work, but if you run into any build or testing problems please try with the specific Go version indicated. You can optionally simplify the installation of multiple specific versions of Go on your system by installing [`goenv`](https://github.com/syndbg/goenv), which reads `.go-version` and automatically selects the correct Go version.
142+
Refer to the file [`.go-version`](https://github.com/hashicorp/terraform/blob/main/.go-version) to see which version of Go Terraform is currently built with. Other versions will often work, but if you run into any build or testing problems please try with the specific Go version indicated. You can optionally simplify the installation of multiple specific versions of Go on your system by installing [`goenv`](https://github.com/syndbg/goenv), which reads `.go-version` and automatically selects the correct Go version.
143143

144144
Use Git to clone this repository into a location of your choice. Terraform is using [Go Modules](https://blog.golang.org/using-go-modules), and so you should *not* clone it inside your `GOPATH`.
145145

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ To learn more about compiling Terraform and contributing suggested changes, plea
4343
To learn more about how we handle bug reports, please read the [bug triage guide](./BUGPROCESS.md).
4444

4545
## License
46-
[Mozilla Public License v2.0](https://github.com/hashicorp/terraform/blob/master/LICENSE)
46+
[Mozilla Public License v2.0](https://github.com/hashicorp/terraform/blob/main/LICENSE)

‎codecov.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ comment:
55
require_base: yes # [yes :: must have a base report to post]
66
require_head: yes # [yes :: must have a head report to post]
77
branches: # branch names that can post comment
8-
- "master"
8+
- "main"
99

1010
coverage:
1111
status:

‎docs/plugin-protocol/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ From Terraform v0.12.0 onwards, Terraform's plugin protocol is built on
2222
different versions of Terraform's protocol.
2323

2424
Only `.proto` files published as part of Terraform release tags are actually
25-
official protocol versions. If you are reading this directory on the `master`
25+
official protocol versions. If you are reading this directory on the `main`
2626
branch or any other development branch then it may contain protocol definitions
2727
that are not yet finalized and that may change before final release.
2828

‎docs/plugin-protocol/tfplugin5.0.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// official protocol releases. Proto files taken from other commits may include
1414
// incomplete changes or features that did not make it into a final release.
1515
// In all reasonable cases, plugin developers should take the proto file from
16-
// the tag of the most recent release of Terraform, and not from the master
16+
// the tag of the most recent release of Terraform, and not from the main
1717
// branch or any other development branch.
1818
//
1919
syntax = "proto3";

‎docs/plugin-protocol/tfplugin5.1.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// official protocol releases. Proto files taken from other commits may include
1414
// incomplete changes or features that did not make it into a final release.
1515
// In all reasonable cases, plugin developers should take the proto file from
16-
// the tag of the most recent release of Terraform, and not from the master
16+
// the tag of the most recent release of Terraform, and not from the main
1717
// branch or any other development branch.
1818
//
1919
syntax = "proto3";

‎docs/plugin-protocol/tfplugin5.2.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// official protocol releases. Proto files taken from other commits may include
1414
// incomplete changes or features that did not make it into a final release.
1515
// In all reasonable cases, plugin developers should take the proto file from
16-
// the tag of the most recent release of Terraform, and not from the master
16+
// the tag of the most recent release of Terraform, and not from the main
1717
// branch or any other development branch.
1818
//
1919
syntax = "proto3";

‎docs/plugin-protocol/tfplugin6.0.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// official protocol releases. Proto files taken from other commits may include
1414
// incomplete changes or features that did not make it into a final release.
1515
// In all reasonable cases, plugin developers should take the proto file from
16-
// the tag of the most recent release of Terraform, and not from the master
16+
// the tag of the most recent release of Terraform, and not from the main
1717
// branch or any other development branch.
1818
//
1919
syntax = "proto3";

‎internal/tfplugin5/tfplugin5.pb.go‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)