Skip to content

Commit

Permalink
Remove dep pkg manager and excess CI steps
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN authored Jan 20, 2022
2 parents 3b62049 + 63d0aae commit 0532644
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 270 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,17 @@ jobs:
- '1.16'
- '1.17'
- '1'

steps:

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
- name: Set up GOPATH
run: |
go version
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
mkdir -p "bin"
mkdir -p "pkg"
mkdir -p "src"
# for dep, bash and Windows
echo "INSTALL_DIRECTORY=$(pwd)/bin" >> $GITHUB_ENV
shell: bash
- name: Check out code
uses: actions/checkout@v2
with:
path: src/github.com/aws/aws-xray-sdk-go

- name: Install Dependencies
run: |
if go help mod > /dev/null 2>&1 ; then
go mod download
else
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
env:
GO111MODULE: "on"
shell: bash
working-directory: src/github.com/aws/aws-xray-sdk-go

- name: Test
run: make test-with-race
env:
GO111MODULE: "on"
shell: bash
working-directory: src/github.com/aws/aws-xray-sdk-go

Expand All @@ -76,45 +46,17 @@ jobs:
- ubuntu-latest
go:
- '1.14'

steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
- name: Set up GOPATH
run: |
go version
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
mkdir -p "bin"
mkdir -p "pkg"
mkdir -p "src"
# for dep, bash and Windows
echo "INSTALL_DIRECTORY=$(pwd)/bin" >> $GITHUB_ENV
shell: bash
- name: Check out code
uses: actions/checkout@v2
with:
path: src/github.com/aws/aws-xray-sdk-go

- name: Install Dependencies
run: |
if go help mod > /dev/null 2>&1 ; then
go mod download
else
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
env:
GO111MODULE: "on"
shell: bash
working-directory: src/github.com/aws/aws-xray-sdk-go

- name: Benchmark
run: go test -v -benchmem -run=^$$ -bench=. ./... | tee benchmark/output.txt
env:
GO111MODULE: "on"
shell: bash
working-directory: src/github.com/aws/aws-xray-sdk-go
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Unreleased
===============================
### SDK Breaking Changes
* Removes support for go [dep](https://github.com/golang/dep). [PR #343](https://github.com/aws/aws-xray-sdk-go/pull/343)


Release v1.6.0 (2021-07-07)
================================
### SDK Enhancements
Expand Down
152 changes: 0 additions & 152 deletions Gopkg.lock

This file was deleted.

50 changes: 0 additions & 50 deletions Gopkg.toml

This file was deleted.

10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ To get a different specific release version of the SDK use `@<tag>` in your `go
go get github.com/aws/[email protected]
```

## Installing using Dep
If you are using Go 1.9 and above, you can also use [Dep](https://github.com/golang/dep) to add the SDK to your application's dependencies.
Using Dep will help your application stay pinned to a specific version of the SDK.

To add the SDK to your application using Dep, run:

```
dep ensure -add github.com/aws/aws-xray-sdk-go
```

## Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests.
Expand Down

0 comments on commit 0532644

Please sign in to comment.