Skip to content

Commit

Permalink
NOISSUE - Remove vendoring and update dependencies (#9)
Browse files Browse the repository at this point in the history
* Remove vendoring and update dependencies

Signed-off-by: Dusan Borovcanin <[email protected]>

* Update README

Signed-off-by: Dusan Borovcanin <[email protected]>

---------

Signed-off-by: Dusan Borovcanin <[email protected]>
  • Loading branch information
dborovcanin authored Jul 5, 2024
1 parent 2754be9 commit 83ecbaa
Show file tree
Hide file tree
Showing 69 changed files with 27 additions and 27,064 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) Abstract Machines
# SPDX-License-Identifier: Apache-2.0

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "./.github/workflows"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.18
- name: Set up Go 1.22.5
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: 1.22.5
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Lint
run: |
export GOBIN=$HOME/go/bin
export PATH=$PATH:$(go env GOBIN)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOBIN) v1.46.2
golangci-lint run --no-config --disable-all --enable gosimple --enable govet --enable unused --enable deadcode --timeout 3m
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOBIN) v1.59.1
golangci-lint run --no-config --disable-all --enable gosimple --enable govet --enable unused --timeout 3m
- name: Test
run: |
go test -v -race -tags test -coverprofile=profile.out -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./profile.out
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Normalized (resolved) SenML Pack consists of resolved SenML Records. A SenML Rec
Valid SenML Record is the record with valid all the required fields and `exactly one` value field. Base values, if present, must be valid, as well. The Pack is valid if all the Records are valid and have the same Base Version.
All SenML Records in a Pack must have the same version number. This is typically done by adding a Base Version field to only the first Record in the Pack or by using the default value.[*](https://tools.ietf.org/html/rfc8428#section-4.4)

[cov-badge]: https://codecov.io/gh/mainflux/senml/branch/master/graph/badge.svg
[cov-url]: https://codecov.io/gh/mainflux/senml
[grc-badge]: https://goreportcard.com/badge/github.com/mainflux/senml
[grc-url]: https://goreportcard.com/report/github.com/mainflux/senml
[cov-badge]: https://codecov.io/gh/absmach/senml/branch/update/graph/badge.svg?token=j7GNzLmEN5
[cov-url]: https://codecov.io/gh/absmach/senml
[grc-badge]: https://goreportcard.com/badge/github.com/absmach/senml
[grc-url]: https://goreportcard.com/report/github.com/absmach/senml
[license]: https://img.shields.io/badge/license-Apache%20v2.0-blue.svg
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/absmach/senml

go 1.21
go 1.22.5

require (
github.com/fxamacker/cbor/v2 v2.5.0
github.com/fxamacker/cbor/v2 v2.7.0
github.com/stretchr/testify v1.8.4
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fxamacker/cbor/v2 v2.5.0 h1:oHsG0V/Q6E/wqTS2O1Cozzsy69nqCiguo5Q1a1ADivE=
github.com/fxamacker/cbor/v2 v2.5.0/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrtAnWBwBCVo=
github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E=
github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
Expand Down
15 changes: 0 additions & 15 deletions vendor/github.com/davecgh/go-spew/LICENSE

This file was deleted.

145 changes: 0 additions & 145 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

This file was deleted.

38 changes: 0 additions & 38 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

This file was deleted.

Loading

0 comments on commit 83ecbaa

Please sign in to comment.