chore: rename default branch to main (#9503)

This commit is contained in:
Luca Casonato 2021-02-19 15:58:19 +01:00 committed by GitHub
parent e3fe4be83b
commit 4f80587d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 22 additions and 23 deletions

View File

@ -1,6 +1,5 @@
<!-- <!--
Before submitting a PR, please read Before submitting a PR, please read http://deno.land/manual/contributing
https://github.com/denoland/deno/blob/master/docs/contributing.md
1. Give the PR a descriptive title. 1. Give the PR a descriptive title.

View File

@ -35,13 +35,13 @@ jobs:
- os: ubuntu-18.04 - os: ubuntu-18.04
kind: test_release kind: test_release
# Always run master branch builds to completion. This allows the cache to # Always run main branch builds to completion. This allows the cache to
# stay mostly up-to-date in situations where a single job fails due to # stay mostly up-to-date in situations where a single job fails due to
# e.g. a flaky test. # e.g. a flaky test.
# Don't fast-fail on tag build because publishing binaries shouldn't be # Don't fast-fail on tag build because publishing binaries shouldn't be
# prevented if if any of the stages fails (which can be a false negative). # prevented if if any of the stages fails (which can be a false negative).
fail-fast: ${{ github.event_name == 'pull_request' || (github.ref != fail-fast: ${{ github.event_name == 'pull_request' || (github.ref !=
'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) }} 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }}
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
@ -55,7 +55,7 @@ jobs:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
# Use depth > 1, because sometimes we need to rebuild master and if # Use depth > 1, because sometimes we need to rebuild main and if
# other commits have landed it will become impossible to rebuild if # other commits have landed it will become impossible to rebuild if
# the checkout is too shallow. # the checkout is too shallow.
fetch-depth: 5 fetch-depth: 5
@ -120,7 +120,7 @@ jobs:
runner.os != 'Windows' && runner.os != 'Windows' &&
matrix.kind == 'test_release' && matrix.kind == 'test_release' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/')) startsWith(github.ref, 'refs/tags/'))
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/setup-gcloud@master
with: with:
@ -133,7 +133,7 @@ jobs:
runner.os == 'Windows' && runner.os == 'Windows' &&
matrix.kind == 'test_release' && matrix.kind == 'test_release' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/')) startsWith(github.ref, 'refs/tags/'))
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/setup-gcloud@master
env: env:
@ -147,7 +147,7 @@ jobs:
if: | if: |
matrix.kind == 'test_release' && matrix.kind == 'test_release' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/master' github.ref == 'refs/heads/main'
shell: bash shell: bash
run: | run: |
echo "DENO_CANARY=true" >> $GITHUB_ENV echo "DENO_CANARY=true" >> $GITHUB_ENV
@ -210,7 +210,7 @@ jobs:
runner.os != 'Windows' && runner.os != 'Windows' &&
matrix.kind == 'test_release' && matrix.kind == 'test_release' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/master' github.ref == 'refs/heads/main'
run: | run: |
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/ gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
echo $(git rev-parse HEAD) > canary-latest.txt echo $(git rev-parse HEAD) > canary-latest.txt
@ -221,7 +221,7 @@ jobs:
runner.os == 'Windows' && runner.os == 'Windows' &&
matrix.kind == 'test_release' && matrix.kind == 'test_release' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/master' github.ref == 'refs/heads/main'
env: env:
CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
shell: bash shell: bash
@ -270,7 +270,7 @@ jobs:
if: | if: |
matrix.kind == 'bench' && matrix.kind == 'bench' &&
github.repository == 'denoland/deno' && github.repository == 'denoland/deno' &&
github.ref == 'refs/heads/master' github.ref == 'refs/heads/main'
env: env:
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }} DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
run: | run: |

View File

@ -84,9 +84,9 @@ More in-depth info can be found in the runtime
We appreciate your help! We appreciate your help!
To contribute, please read our To contribute, please read our
[guidelines](https://github.com/denoland/deno/blob/master/docs/contributing/style_guide.md). [guidelines](https://github.com/denoland/deno/blob/main/docs/contributing/style_guide.md).
[Build Status - Cirrus]: https://github.com/denoland/deno/workflows/ci/badge.svg?branch=master&event=push [Build Status - Cirrus]: https://github.com/denoland/deno/workflows/ci/badge.svg?branch=main&event=push
[Build status]: https://github.com/denoland/deno/actions [Build status]: https://github.com/denoland/deno/actions
[Twitter badge]: https://twitter.com/intent/follow?screen_name=deno_land [Twitter badge]: https://twitter.com/intent/follow?screen_name=deno_land
[Twitter handle]: https://img.shields.io/twitter/follow/deno_land.svg?style=social&label=Follow [Twitter handle]: https://img.shields.io/twitter/follow/deno_land.svg?style=social&label=Follow

View File

@ -21,10 +21,10 @@ function to trigger the "dispatch" callback in Rust. The user is responsible for
encoding both the request and response into a Uint8Array. encoding both the request and response into a Uint8Array.
Documentation for this crate is thin at the moment. Please see Documentation for this crate is thin at the moment. Please see
[http_bench_bin_ops.rs](https://github.com/denoland/deno/blob/master/core/examples/http_bench_bin_ops.rs) [http_bench_bin_ops.rs](https://github.com/denoland/deno/blob/main/core/examples/http_bench_bin_ops.rs)
and and
[http_bench_json_ops.rs](https://github.com/denoland/deno/blob/master/core/examples/http_bench_json_ops.rs) [http_bench_json_ops.rs](https://github.com/denoland/deno/blob/main/core/examples/http_bench_json_ops.rs)
as a simple example of usage. as a simple example of usage.
TypeScript support and a lot of other functionality is not available at this TypeScript support and a lot of other functionality is not available at this
layer. See the [CLI](https://github.com/denoland/deno/tree/master/cli) for that. layer. See the [CLI](https://github.com/denoland/deno/tree/main/cli) for that.

View File

@ -103,7 +103,7 @@ Build with Cargo:
# Build: # Build:
cargo build -vv cargo build -vv
# Build errors? Ensure you have latest master and try building again, or if that doesn't work try: # Build errors? Ensure you have latest main and try building again, or if that doesn't work try:
cargo clean && cargo build -vv cargo clean && cargo build -vv
# Run: # Run:

View File

@ -14,7 +14,7 @@ Stable releases can be found on the
### Canary channel ### Canary channel
In addition to the stable channel described above, canaries are released In addition to the stable channel described above, canaries are released
multiple times daily (for each commit on master). You can upgrade to the latest multiple times daily (for each commit on main). You can upgrade to the latest
canary release by running: canary release by running:
``` ```

View File

@ -23,4 +23,4 @@ The TypeScript definitions for the Deno namespaces can be found in the
file. file.
The documentation for all of the Deno specific APIs can be found on The documentation for all of the Deno specific APIs can be found on
[doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.ns.d.ts). [doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/main/cli/dts/lib.deno.ns.d.ts).

View File

@ -15,7 +15,7 @@ Passing this flag does a few things:
- It enables the use of unstable APIs during runtime. - It enables the use of unstable APIs during runtime.
- It adds the - It adds the
[`lib.deno.unstable.d.ts`](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.unstable.d.ts) [`lib.deno.unstable.d.ts`](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/main/cli/dts/lib.deno.unstable.d.ts)
file to the list of TypeScript definitions that are used for type checking. file to the list of TypeScript definitions that are used for type checking.
This includes the output of `deno types`. This includes the output of `deno types`.

View File

@ -14,11 +14,11 @@ Deno is released.
We strongly suggest to always use imports with pinned version of standard We strongly suggest to always use imports with pinned version of standard
library to avoid unintended changes. For example, rather than linking to the library to avoid unintended changes. For example, rather than linking to the
master branch of code, which may change at any time, potentially causing default branch of code, which may change at any time, potentially causing
compilation errors or unexpected behavior: compilation errors or unexpected behavior:
```typescript ```typescript
// imports from master, this should be avoided // import the latest release, this should be avoided
import { copy } from "https://deno.land/std/fs/copy.ts"; import { copy } from "https://deno.land/std/fs/copy.ts";
``` ```

View File

@ -67,7 +67,7 @@ switch (command) {
update update
Update the \`expectation.json\` to match the current reality. Update the \`expectation.json\` to match the current reality.
More details at https://deno.land/manual@master/contributing/web_platform_tests More details at https://deno.land/manual@main/contributing/web_platform_tests
`); `);
break; break;