Disabling the use of pulumi watch on darwin/arm64 architecture (#6497)

This commit is contained in:
Paul Stack 2021-03-10 22:03:55 +00:00 committed by GitHub
parent 1f16423ede
commit 63857ac72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

View file

@ -15,7 +15,8 @@
- [build] Updating Pulumi to use Go 1.16
[#6470](https://github.com/pulumi/pulumi/pull/6470)
- [build] Adding a Pulumi arm64 binary for use on new macOS hardware
- [build] Adding a Pulumi arm64 binary for use on new macOS hardware.
Please note that `pulumi watch` will not be supported on darwin/arm64 builds.
[#6492](https://github.com/pulumi/pulumi/pull/6492)
### Bug Fixes

View file

@ -1,3 +1,5 @@
// +build !darwin !arm64
// Copyright 2016-2019, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");

View file

@ -0,0 +1,26 @@
// Copyright 2016-2019, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package backend
import (
"context"
"errors"
"github.com/pulumi/pulumi/sdk/v2/go/common/util/result"
)
func Watch(ctx context.Context, b Backend, stack Stack, op UpdateOperation, apply Applier) result.Result {
return result.FromError(errors.New("pulumi watch is not currently supported on darwin/arm64"))
}