11 Commits

Author SHA1 Message Date
mleku
53d29ac909 changing urls for new repo
Some checks failed
FOSSA Analysis / build (push) Has been cancelled
Go / build (1.17.x) (push) Has been cancelled
Go / build (1.18.x) (push) Has been cancelled
Go / build (1.19.x, true) (push) Has been cancelled
2023-11-24 10:40:32 +00:00
Gabriel Cipriano
b1c4565f21 replace deprecated function CAS in examples (#138)
Update example_test.go and README.md replacing deprecated func
2023-07-14 11:17:35 -07:00
Dmitriy Shirchenko
3db2fee91a Switch to GitHub Actions from Travis. (#85)
Use GitHub Actions because we're deprecating use of Travis for our OSS
projects.

This change ran into some issues with the `generatenodirty` check so
we changed it to print `git status`. We ran into an issue where
`go mod download` was changing the go.sum and `go mod tidy` was alone.

As a workaround for this, the CI job doesn't `go mod download` by
default; we'll let the actual `test` or `build` commands do that.
2021-05-10 15:29:57 -07:00
Abhinav Gupta
b99530f7f5 README: Fix legacy import path instructions (#60)
In migrating to Go modules, we had to decide between the import paths
github.com/uber-go/atomic and go.uber.org/atomic. We chose the latter.

As a result of this, users of the legacy import path would get an error
message similar to the following:

    github.com/uber-go/atomic: github.com/uber-go/atomic@v1.5.0: parsing go.mod:
    module declares its path as: go.uber.org/atomic
            but was required as: github.com/uber-go/atomic

We suggested that users of the legacy import path add the following to
their go.mod.

    replace github.com/uber-go/atomic => go.uber.org/atomic v1.5.0

This is inaccurate and will result in the following error message:

    go.uber.org/atomic@v1.5.0 used for two different module paths
    (github.com/uber-go/atomic and go.uber.org/atomic)

This was not detected before because `go mod tidy` works fine with this
`replace` directive. It fails only when it gets to `go build`.

After digging into this more, per section 4.4 of the resolution section
of [How can I resolve "parsing go.mod: unexpected module path" (..)][1],
the correct method of resolving this is to downgrade the legacy import
path to a version prior to the use of Go modules.

  [1]: https://github.com/golang/go/wiki/Modules#how-can-i-resolve-parsing-gomod-unexpected-module-path-and-error-loading-module-requirements-errors-caused-by-a-mismatch-between-import-paths-vs-declared-module-identity

So the correct `replace` directive here would be,

    replace github.com/uber-go/atomic => github.com/uber-go/atomic v1.4.0

This fix was verified both, locally and by @atibhav21 who first ran into
this.
2019-11-04 15:54:56 -08:00
Abhinav Gupta
473b9563f0 Switch to Go modules (#56)
This switches atomic to Go modules. This has the effect of simplifying
the Makefile and the Travis build, as well as getting rid of the overly
complicated coverage script we copied here.

Tools dependencies (currently only golint) were added to the tools.go.

As a result of this change, we no longer support the non-vanity import path
github.com/uber-go/atomic. Users must use the vanity import path, or add a
`replace` directive.

Supersedes #40
2019-10-29 15:04:38 -07:00
Abhinav Gupta
5a6ca66254 README: Switch to travis-ci.com for badge (#51) 2019-04-29 13:45:39 -07:00
William Banfield
8dc6146f75 switch hr to native markdown to render link (#43) 2018-10-18 14:50:23 -07:00
Prashant Varanasi
3c3f2a99a1 Point coverage badge at codecov instead of coveralls 2017-06-08 16:17:25 -07:00
Bill Fumerola
908889c45e goreportcard badge 2017-05-24 19:49:27 -07:00
Prashant Varanasi
0ab99594f7 Use go.uber.org import path (#13) 2016-10-27 00:33:41 -07:00
Akshay Shah
68f9c8c0d0 Add docs and linters before release (#6)
* Add a lint target to Makefile

* Add a README

* Add a simple example

* Add a PR template

* Show off usable zero values
2016-05-29 20:50:32 -07:00