Skip to content

Commit

Permalink
Updating the go build tags as part of Linux Golang upgrade
Browse files Browse the repository at this point in the history
Previously, the Linux was running on older version of Golang. With the Golang version upgrade to 1.17, the refactoring was done to change the build tags. This commit is for the same refactoring to older commits of ECS Exec on Windows feature.
  • Loading branch information
Harsh Rawat committed Oct 18, 2021
1 parent 915556d commit 5ddc83b
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_init_task.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux windows
//go:build linux || windows

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_init_task_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build unit
//go:build unit

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_init_task_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_init_task_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows,unit
//go:build windows && unit

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_start.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux windows
//go:build linux || windows

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_start_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build unit
//go:build unit

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
3 changes: 2 additions & 1 deletion agent/engine/execcmd/manager_start_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand All @@ -12,6 +12,7 @@
// 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 execcmd

import apicontainer "github.com/aws/amazon-ecs-agent/agent/api/container"
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_start_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows,unit
//go:build windows && unit

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion agent/engine/execcmd/manager_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
Expand Down

0 comments on commit 5ddc83b

Please sign in to comment.