-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update dependencies and bump go version (#26)
* feat: bump to a supported go version * feat: replace godirwalk with upstream walkdir function WalkDir avoids calling os.Lstat on every visited file or directory and was introduced in go 1.16 * feat: replace pkgerr with upstream embed package go 1.16 added the new embed package and pkger is archived * feat: bump dependencies * lint: regenerate notice file * ci: do not install pkger we are not using it anymore * ci: checkout repo before setting up go * fix: do not copy transport locks assignment copies lock value to transport: net/http.Transport contains sync.Mutex * feat: replace deprecated ioutil calls * feat: inline funcitons
- Loading branch information
Showing
13 changed files
with
99 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## Prerequisites | ||
|
||
To submit a PR, please ensure you run `make generate` to ensure the NOTICE file is up to date. This may require you have `pkger` installed already, which you can do with `go get github.com/markbates/pkger/cmd/pkger`. | ||
To submit a PR, please ensure you run `make generate` to ensure the NOTICE file is up to date. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,79 +258,13 @@ Contents of probable licence file $GOMODCACHE/github.com/google/licenseclassifie | |
limitations under the License. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Module : github.com/karrick/godirwalk | ||
Version : v1.15.6 | ||
Time : 2020-04-08T22:16:01Z | ||
Licence : BSD-2-Clause | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/karrick/[email protected]/LICENSE: | ||
|
||
BSD 2-Clause License | ||
|
||
Copyright (c) 2017, Karrick McDermott | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Module : github.com/markbates/pkger | ||
Version : v0.17.0 | ||
Time : 2020-06-03T18:03:53Z | ||
Licence : MIT | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/markbates/[email protected]/LICENSE: | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019 Mark Bates | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Module : github.com/stretchr/testify | ||
Version : v1.6.1 | ||
Time : 2020-06-05T10:48:45Z | ||
Version : v1.9.0 | ||
Time : 2024-02-29T14:36:18Z | ||
Licence : MIT | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/stretchr/testify@v1.6.1/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/github.com/stretchr/testify@v1.9.0/LICENSE: | ||
|
||
MIT License | ||
|
||
|
@@ -357,13 +291,13 @@ SOFTWARE. | |
|
||
-------------------------------------------------------------------------------- | ||
Module : golang.org/x/mod | ||
Version : v0.18.0 | ||
Time : 2024-05-14T17:47:13Z | ||
Version : v0.20.0 | ||
Time : 2024-07-30T14:22:55Z | ||
Licence : BSD-3-Clause | ||
|
||
Contents of probable licence file $GOMODCACHE/golang.org/x/mod@v0.18.0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/golang.org/x/mod@v0.20.0/LICENSE: | ||
|
||
Copyright (c) 2009 The Go Authors. All rights reserved. | ||
Copyright 2009 The Go Authors. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
|
@@ -375,7 +309,7 @@ notice, this list of conditions and the following disclaimer. | |
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
* Neither the name of Google LLC nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
|
@@ -394,13 +328,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
|
||
-------------------------------------------------------------------------------- | ||
Module : golang.org/x/sync | ||
Version : v0.7.0 | ||
Time : 2024-03-04T17:26:02Z | ||
Version : v0.8.0 | ||
Time : 2024-07-16T16:06:58Z | ||
Licence : BSD-3-Clause | ||
|
||
Contents of probable licence file $GOMODCACHE/golang.org/x/sync@v0.7.0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/golang.org/x/sync@v0.8.0/LICENSE: | ||
|
||
Copyright (c) 2009 The Go Authors. All rights reserved. | ||
Copyright 2009 The Go Authors. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
|
@@ -412,7 +346,7 @@ notice, this list of conditions and the following disclaimer. | |
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
* Neither the name of Google LLC nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to Elasticsearch B.V. under one or more contributor | ||
// license agreements. See the NOTICE file distributed with | ||
// this work for additional information regarding copyright | ||
// ownership. Elasticsearch B.V. licenses this file to you under | ||
// the Apache License, Version 2.0 (the "License"); you may | ||
// not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed 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 assets // import "go.elastic.co/go-licence-detector/assets" | ||
|
||
import _ "embed" | ||
|
||
//go:embed licence.db | ||
var LicenceDB []byte | ||
|
||
//go:embed rules.json | ||
var Rules []byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.