Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the outdated build constraint // +build #1035

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion attachments123_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.23
// +build go1.23

package kivik

Expand Down
1 change: 0 additions & 1 deletion changes123_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.23
// +build go1.23

package kivik

Expand Down
1 change: 0 additions & 1 deletion couchdb/chttp/chttp_js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package chttp

Expand Down
1 change: 0 additions & 1 deletion couchdb/main_js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package couchdb

Expand Down
1 change: 0 additions & 1 deletion couchdb/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

// GopherJS can't run a test server

Expand Down
1 change: 0 additions & 1 deletion couchdb/test/couchdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package test

Expand Down
1 change: 0 additions & 1 deletion internal/nettest/nettest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

// Package nettest wraps [httptest.NewServer] to skip when called from GopherJS.
package nettest
Expand Down
1 change: 0 additions & 1 deletion internal/nettest/nettest_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

// Package nettest wraps [httptest.NewServer] to skip when called from GopherJS.
package nettest
Expand Down
1 change: 0 additions & 1 deletion kiviktest/client/replicate_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package client

Expand Down
1 change: 0 additions & 1 deletion kiviktest/client/replicate_nonjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package client

Expand Down
1 change: 0 additions & 1 deletion kiviktest/go110testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.10 && !go1.18
// +build go1.10,!go1.18

package kiviktest

Expand Down
1 change: 0 additions & 1 deletion kiviktest/go118testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.18 && !go1.23
// +build go1.18,!go1.23

package kiviktest

Expand Down
1 change: 0 additions & 1 deletion kiviktest/go123testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.23
// +build go1.23

package kiviktest

Expand Down
1 change: 0 additions & 1 deletion kiviktest/go18testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.8 && !go1.9
// +build go1.8,!go1.9

package kiviktest

Expand Down
2 changes: 1 addition & 1 deletion pouchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface. You must import the driver and can then use the full
[`Kivik`](https://pkg.go.dev/github.com/go-kivik/kivik/v4) API.

```go
// +build js
//go:build js

package main

Expand Down
1 change: 0 additions & 1 deletion pouchdb/attachments.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/basicauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package bindings

Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package bindings

Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/nofind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package bindings

Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/pouchdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

// Package bindings provides minimal GopherJS bindings around the PouchDB
// library. (https://pouchdb.com/api.html)
Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/poucherr/poucherr.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

// Package poucherr exists only for the purpose of testing the PouchDB binding's
// handling of PouchDB-specific error messages. This Go package is empty, the
Expand Down
1 change: 0 additions & 1 deletion pouchdb/bindings/recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package bindings

Expand Down
1 change: 0 additions & 1 deletion pouchdb/bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
2 changes: 1 addition & 1 deletion pouchdb/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Use the `pouch` driver name when using this driver. The DSN should be the
blank string for local database connections, or a full URL, including any
required credentials, when connecting to a remote database.

// +build js
//go:build js

package main

Expand Down
1 change: 0 additions & 1 deletion pouchdb/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/indexeddb/purge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package indexeddb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/internal/pouchver.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package internal

Expand Down
1 change: 0 additions & 1 deletion pouchdb/js.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/pouchdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/replicationEvents.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package pouchdb

Expand Down
1 change: 0 additions & 1 deletion pouchdb/test/pouchdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

package test

Expand Down
1 change: 0 additions & 1 deletion pouchdb/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build js
// +build js

// Package test provides PouchDB integration tests.
package test
Expand Down
1 change: 0 additions & 1 deletion replicate_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// TODO: Try to re-enable these tests when we're on a newer version of GopherJS.

//go:build !js
// +build !js

package kivik_test

Expand Down
1 change: 0 additions & 1 deletion resultset123_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.23
// +build go1.23

package kivik

Expand Down
1 change: 0 additions & 1 deletion updates123_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build go1.23
// +build go1.23

package kivik

Expand Down
1 change: 0 additions & 1 deletion x/fsdb/test/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package test

Expand Down
1 change: 0 additions & 1 deletion x/kivikd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package kivikd

Expand Down
1 change: 0 additions & 1 deletion x/kivikd/auth/cookie/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

// Package cookie provides standard CouchDB cookie auth as described at
// https://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication
Expand Down
1 change: 0 additions & 1 deletion x/kivikd/auth/cookie/cookie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package cookie

Expand Down
1 change: 0 additions & 1 deletion x/kivikd/authdb/authgroup/authgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package authgroup

Expand Down
1 change: 0 additions & 1 deletion x/kivikd/authdb/authgroup/authgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// the License.

//go:build !js
// +build !js

package authgroup

Expand Down
Loading