From ea7cfdccbfcb282de4a85af5943f11b2d8294448 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Wed, 28 Aug 2024 10:16:27 +0200 Subject: [PATCH 01/13] Ota progress status details with progress bar fixes (#159) --- command/ota/status.go | 4 +- internal/ota-api/dto.go | 78 ++++++++++++++++++++++++------------ internal/ota-api/dto_test.go | 4 +- 3 files changed, 57 insertions(+), 29 deletions(-) diff --git a/command/ota/status.go b/command/ota/status.go index 4bb9d067..f6077d2a 100644 --- a/command/ota/status.go +++ b/command/ota/status.go @@ -44,9 +44,11 @@ func PrintOtaStatus(otaid, otaids, device string, cred *config.Credentials, limi res, err := otapi.GetOtaStatusByOtaID(otaid, limit, order) if err == nil && res != nil { feedback.PrintResult(otaapi.OtaStatusDetail{ - FirmwareSize: res.FirmwareSize, + FirmwareSize: res.Ota.FirmwareSize, Ota: res.Ota, Details: res.States, + MaxRetries: res.Ota.MaxRetries, + RetryAttempt: res.Ota.RetryAttempt, }) } else if err != nil { return err diff --git a/internal/ota-api/dto.go b/internal/ota-api/dto.go index 04184ed8..edb55909 100644 --- a/internal/ota-api/dto.go +++ b/internal/ota-api/dto.go @@ -31,9 +31,8 @@ const progressBarMultiplier = 2 type ( OtaStatusResponse struct { - FirmwareSize *int64 `json:"firmware_size,omitempty"` - Ota Ota `json:"ota"` - States []State `json:"states,omitempty"` + Ota Ota `json:"ota"` + States []State `json:"states,omitempty"` } OtaStatusList struct { @@ -41,12 +40,15 @@ type ( } Ota struct { - ID string `json:"id,omitempty" yaml:"id,omitempty"` - DeviceID string `json:"device_id,omitempty" yaml:"device_id,omitempty"` - Status string `json:"status" yaml:"status"` - StartedAt string `json:"started_at" yaml:"started_at"` - EndedAt string `json:"ended_at,omitempty" yaml:"ended_at,omitempty"` - ErrorReason string `json:"error_reason,omitempty" yaml:"error_reason,omitempty"` + ID string `json:"id,omitempty" yaml:"id,omitempty"` + DeviceID string `json:"device_id,omitempty" yaml:"device_id,omitempty"` + Status string `json:"status" yaml:"status"` + StartedAt string `json:"started_at" yaml:"started_at"` + EndedAt string `json:"ended_at,omitempty" yaml:"ended_at,omitempty"` + ErrorReason string `json:"error_reason,omitempty" yaml:"error_reason,omitempty"` + FirmwareSize int64 `json:"firmware_size,omitempty"` + MaxRetries int64 `json:"max_retries,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` } State struct { @@ -57,7 +59,9 @@ type ( } OtaStatusDetail struct { - FirmwareSize *int64 `json:"firmware_size,omitempty"` + FirmwareSize int64 `json:"firmware_size,omitempty"` + MaxRetries int64 `json:"max_retries,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` Ota Ota `json:"ota"` Details []State `json:"details,omitempty"` } @@ -81,7 +85,7 @@ func (r OtaStatusList) String() string { } if hasErrorReason { - t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason") + t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason", "Retry Attempt") } else { t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At") } @@ -91,6 +95,7 @@ func (r OtaStatusList) String() string { line := []any{r.DeviceID, r.ID, r.MapStatus(), formatHumanReadableTs(r.StartedAt), formatHumanReadableTs(r.EndedAt)} if hasErrorReason { line = append(line, r.ErrorReason) + line = append(line, strconv.FormatInt(r.RetryAttempt, 10)) } t.AddRow(line...) } @@ -114,7 +119,7 @@ func (r Ota) String() string { hasErrorReason := r.ErrorReason != "" if hasErrorReason { - t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason") + t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason", "Retry Attempt") } else { t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At") } @@ -123,6 +128,7 @@ func (r Ota) String() string { line := []any{r.DeviceID, r.ID, r.MapStatus(), formatHumanReadableTs(r.StartedAt), formatHumanReadableTs(r.EndedAt)} if hasErrorReason { line = append(line, r.ErrorReason) + line = append(line, strconv.FormatInt(r.RetryAttempt, 10)) } t.AddRow(line...) @@ -138,18 +144,21 @@ func (r OtaStatusDetail) String() string { return "No OTA found" } t := table.New() - hasErrorReason := r.Ota.ErrorReason != "" - if hasErrorReason { - t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason") + succeeded := strings.ToLower(r.Ota.Status) == "succeeded" + hasError := r.Ota.ErrorReason != "" || !succeeded + + if hasError { + t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At", "Error Reason", "Retry Attempt") } else { t.SetHeader("Device ID", "Ota ID", "Status", "Started At", "Ended At") } // Now print the table line := []any{r.Ota.DeviceID, r.Ota.ID, r.Ota.MapStatus(), formatHumanReadableTs(r.Ota.StartedAt), formatHumanReadableTs(r.Ota.EndedAt)} - if hasErrorReason { + if hasError { line = append(line, r.Ota.ErrorReason) + line = append(line, strconv.FormatInt(r.RetryAttempt, 10)) } t.AddRow(line...) @@ -160,22 +169,37 @@ func (r OtaStatusDetail) String() string { t = table.New() t.SetHeader("Time", "Status", "Detail") fwSize := int64(0) - if r.FirmwareSize != nil { - fwSize = *r.FirmwareSize + if r.FirmwareSize > 0 { + fwSize = r.FirmwareSize + } + + firstTS := formatHumanReadableTs(r.Details[0].Timestamp) + if !containsResetState(r.Details) && !hasError { + t.AddRow(firstTS, "Flash", "") } + + hasReachedFlashState := hasReachedFlashState(r.Details, succeeded) for _, s := range r.Details { - stateData := formatStateData(s.State, s.StateData, fwSize, hasReachedFlashState(r.Details)) + stateData := formatStateData(s.State, s.StateData, fwSize, hasReachedFlashState) t.AddRow(formatHumanReadableTs(s.Timestamp), upperCaseFirst(s.State), stateData) } + output += "\nDetails:\n" + t.Render() } return output } -func hasReachedFlashState(states []State) bool { +func hasReachedFlashState(states []State, succeeded bool) bool { + if succeeded { + return true + } + return containsResetState(states) +} + +func containsResetState(states []State) bool { for _, s := range states { - if s.State == "flash" || s.State == "reboot" { + if strings.ToLower(s.State) == "flash" || strings.ToLower(s.State) == "reboot" { return true } } @@ -193,15 +217,15 @@ func formatStateData(state, data string, firmware_size int64, hasReceivedFlashSt return data } if hasReceivedFlashState { - return buildSimpleProgressBar(float64(100)) + return buildSimpleProgressBar(float64(100), firmware_size) } percentage := (float64(actualDownloadedData) / float64(firmware_size)) * 100 - return buildSimpleProgressBar(percentage) + return buildSimpleProgressBar(percentage, firmware_size) } return data } -func buildSimpleProgressBar(progress float64) string { +func buildSimpleProgressBar(progress float64, fw_size int64) string { progressInt := int(progress) / 10 progressInt = progressInt * progressBarMultiplier maxProgress := 10 * progressBarMultiplier @@ -210,8 +234,10 @@ func buildSimpleProgressBar(progress float64) string { bar.WriteString(strings.Repeat("=", progressInt)) bar.WriteString(strings.Repeat(" ", maxProgress-progressInt)) bar.WriteString("] ") - bar.WriteString(strconv.FormatFloat(progress, 'f', 2, 64)) - bar.WriteString("%") + bar.WriteString(strconv.FormatFloat(progress, 'f', 0, 64)) + bar.WriteString("% (firmware size: ") + bar.WriteString(strconv.FormatInt(fw_size, 10)) + bar.WriteString(" bytes)") return bar.String() } diff --git a/internal/ota-api/dto_test.go b/internal/ota-api/dto_test.go index bb91225f..619a7101 100644 --- a/internal/ota-api/dto_test.go +++ b/internal/ota-api/dto_test.go @@ -9,11 +9,11 @@ import ( func TestProgressBar_notCompletePct(t *testing.T) { firmwareSize := int64(25665 * 2) bar := formatStateData("fetch", "25665", firmwareSize, false) - assert.Equal(t, "[========== ] 50.00%", bar) + assert.Equal(t, "[========== ] 50% (firmware size: 51330 bytes)", bar) } func TestProgressBar_ifFlashState_goTo100Pct(t *testing.T) { firmwareSize := int64(25665 * 2) bar := formatStateData("fetch", "25665", firmwareSize, true) // If in flash status, go to 100% - assert.Equal(t, "[====================] 100.00%", bar) + assert.Equal(t, "[====================] 100% (firmware size: 51330 bytes)", bar) } From ec26d92d802386b0bd51591159b7f7101fe93ce9 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Thu, 12 Sep 2024 16:25:03 +0200 Subject: [PATCH 02/13] [WIRE-510] Pass organization header while creating token (#164) --- cli/device/list.go | 9 +++++++-- internal/iot/client.go | 8 ++++---- internal/iot/token.go | 5 ++++- internal/ota-api/client.go | 2 +- internal/storage-api/client.go | 2 +- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/cli/device/list.go b/cli/device/list.go index d7d9597f..99a339a4 100644 --- a/cli/device/list.go +++ b/cli/device/list.go @@ -92,6 +92,11 @@ func (r listResult) Data() interface{} { return r.devices } +func cleanStrings(serial string) string { + serial = strings.Trim(serial, "\n") + return strings.Trim(serial, " ") +} + func (r listResult) String() string { if len(r.devices) == 0 { return "No devices found." @@ -100,11 +105,11 @@ func (r listResult) String() string { t.SetHeader("Name", "ID", "Board", "FQBN", "SerialNumber", "Status", "Tags") for _, device := range r.devices { t.AddRow( - device.Name, + cleanStrings(device.Name), device.ID, device.Board, device.FQBN, - device.Serial, + cleanStrings(device.Serial), dereferenceString(device.Status), strings.Join(device.Tags, ","), ) diff --git a/internal/iot/client.go b/internal/iot/client.go index ece0d015..788a4e05 100644 --- a/internal/iot/client.go +++ b/internal/iot/client.go @@ -560,15 +560,15 @@ func (cl *Client) TemplateApply(ctx context.Context, id, thingId, prefix, device return dev, nil } -func (cl *Client) setup(client, secret, organization string) error { +func (cl *Client) setup(client, secret, organizationId string) error { baseURL := GetArduinoAPIBaseURL() // Configure a token source given the user's credentials. - cl.token = NewUserTokenSource(client, secret, baseURL) + cl.token = NewUserTokenSource(client, secret, baseURL, organizationId) config := iotclient.NewConfiguration() - if organization != "" { - config.AddDefaultHeader("X-Organization", organization) + if organizationId != "" { + config.AddDefaultHeader("X-Organization", organizationId) } config.Servers = iotclient.ServerConfigurations{ { diff --git a/internal/iot/token.go b/internal/iot/token.go index ebca7536..07f83bd7 100644 --- a/internal/iot/token.go +++ b/internal/iot/token.go @@ -39,10 +39,13 @@ func GetArduinoAPIBaseURL() string { } // Build a new token source to forge api JWT tokens based on provided credentials -func NewUserTokenSource(client, secret, baseURL string) oauth2.TokenSource { +func NewUserTokenSource(client, secret, baseURL, organizationId string) oauth2.TokenSource { // We need to pass the additional "audience" var to request an access token. additionalValues := url.Values{} additionalValues.Add("audience", "https://api2.arduino.cc/iot") + if organizationId != "" { + additionalValues.Add("organization_id", organizationId) + } // Set up OAuth2 configuration. config := cc.Config{ ClientID: client, diff --git a/internal/ota-api/client.go b/internal/ota-api/client.go index 1c4bd52f..9c2536d9 100644 --- a/internal/ota-api/client.go +++ b/internal/ota-api/client.go @@ -49,7 +49,7 @@ type OtaApiClient struct { func NewClient(credentials *config.Credentials) *OtaApiClient { host := iot.GetArduinoAPIBaseURL() - tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, host) + tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, host, credentials.Organization) return &OtaApiClient{ client: &http.Client{}, src: tokenSource, diff --git a/internal/storage-api/client.go b/internal/storage-api/client.go index fb00a792..c3d4e1f2 100644 --- a/internal/storage-api/client.go +++ b/internal/storage-api/client.go @@ -57,7 +57,7 @@ func getArduinoAPIBaseURL() string { func NewClient(credentials *config.Credentials) *StorageApiClient { host := getArduinoAPIBaseURL() iothost := iot.GetArduinoAPIBaseURL() - tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, iothost) + tokenSource := iot.NewUserTokenSource(credentials.Client, credentials.Secret, iothost, credentials.Organization) return &StorageApiClient{ client: &http.Client{}, src: tokenSource, From d2e36f70131df508cb43ee1013f167aed1cce642 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Fri, 13 Sep 2024 09:45:52 +0200 Subject: [PATCH 03/13] Upgrade deprecated github actions (#165) --- .github/workflows/check-dependencies-task.yml | 2 +- .github/workflows/release-go-task.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-dependencies-task.yml b/.github/workflows/check-dependencies-task.yml index d4a41145..a2605000 100644 --- a/.github/workflows/check-dependencies-task.yml +++ b/.github/workflows/check-dependencies-task.yml @@ -69,7 +69,7 @@ jobs: # Some might find it convenient to have CI generate the cache rather than setting up for it locally - name: Upload cache to workflow artifact if: failure() && steps.diff.outcome == 'failure' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: dep-licenses-cache diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index 27fe0763..6a277ba8 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -43,7 +43,7 @@ jobs: run: task dist:all - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: ${{ env.ARTIFACT_NAME }} @@ -58,7 +58,7 @@ jobs: uses: actions/checkout@v3 - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ env.ARTIFACT_NAME }} path: ${{ env.DIST_DIR }} @@ -119,7 +119,7 @@ jobs: ${{ env.DIST_DIR }}/*-checksums.txt - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: if-no-files-found: error name: ${{ env.ARTIFACT_NAME }} From f3a3f24d0e6ff5af71b74b81132be39bf644e87a Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 13 Sep 2024 00:57:46 -0700 Subject: [PATCH 04/13] Configure actions/upload-artifact action to upload required hidden files (#163) A breaking change was made in the 3.2.1 release of the "actions/upload-artifact" action, without doing a major version bump as would be done in a responsibly maintained project. The action now defaults to not uploading "hidden" files. This project's "Check Go Dependencies" workflow uses the "Licensed" tool to check for incompatible dependency licenses. The dependencies license metadata cache used by Licensed is stored in a folder named `.licensed`. In order to facilitate updates, the workflow uploads the generated dependencies license metadata cache as a workflow artifact when the current cache is found to be outdated. The `.` at the start of the `.licensed` folder name causes it to now not be uploaded to the workflow artifact. In order to catch such problems, the workflow configures the "actions/upload-artifact" action to fail if no files were uploaded. So in addition to not uploading the artifact, the change in the "actions/upload-artifact" action's behavior also resulted in the workflow runs failing: Error: No files were found with the provided path: .licenses/. No artifacts will be uploaded. The problem is fixed by disabling the "actions/upload-artifact" action's new behavior via the `include-hidden-files` input. After this change, the workflow can once more upload the dependencies license metadata cache to a workflow artifact as needed. Co-authored-by: Marco Colombo --- .github/workflows/check-dependencies-task.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-dependencies-task.yml b/.github/workflows/check-dependencies-task.yml index a2605000..8f6de07a 100644 --- a/.github/workflows/check-dependencies-task.yml +++ b/.github/workflows/check-dependencies-task.yml @@ -72,6 +72,7 @@ jobs: uses: actions/upload-artifact@v4 with: if-no-files-found: error + include-hidden-files: true name: dep-licenses-cache path: .licenses/ From 69736b54232baafd145fd4db22363efa14662697 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Fri, 13 Sep 2024 11:32:52 +0200 Subject: [PATCH 05/13] Fix MacOS release (#166) --- .github/workflows/release-go-task.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index 6a277ba8..85c35bc0 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -104,7 +104,7 @@ jobs: # 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file) # 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file run: | - # GitHub's upload/download-artifact@v2 actions don't preserve file permissions, + # GitHub's upload/download-artifact@v4 actions don't preserve file permissions, # so we need to add execution permission back until the action is made to do this. chmod +x ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_darwin_amd64/${{ env.PROJECT_NAME }} TAG="${GITHUB_REF/refs\/tags\//}" @@ -122,6 +122,7 @@ jobs: uses: actions/upload-artifact@v4 with: if-no-files-found: error + overwrite: true name: ${{ env.ARTIFACT_NAME }} path: ${{ env.DIST_DIR }} From 0229c3f59a7c5454f814cacfb284d18775370133 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Fri, 13 Sep 2024 12:02:44 +0200 Subject: [PATCH 06/13] Fix deprecated actions (#167) --- .github/workflows/release-go-task.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index 85c35bc0..abbfcc14 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -132,7 +132,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ env.ARTIFACT_NAME }} path: ${{ env.DIST_DIR }} From 5a10fda4ffb7bf068d8931939593b06c72121e8a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 1 Oct 2024 13:03:08 +0200 Subject: [PATCH 07/13] Updated a bunch of libraries (#168) * Updated a bunch of libraries * Upgrade go version to 1.23 * Upgrade go.bug.st/serial * Updated mockery test * Updated arduino-cli again to remove other deps in particular to board-discovery that had a link to the really old go.bug.st/serial.v1. --- .github/workflows/check-dependencies-task.yml | 2 +- .github/workflows/test-go-task.yml | 2 +- .licensed.yml | 6 + .../arduino/arduino-cli/arduino.dep.yml | 6 +- .../arduino/arduino-cli/arduino/cores.dep.yml | 6 +- .../arduino/cores/packageindex.dep.yml | 6 +- .../arduino/cores/packagemanager.dep.yml | 6 +- .../arduino-cli/arduino/discovery.dep.yml | 6 +- .../discovery/discoverymanager.dep.yml | 6 +- .../arduino-cli/arduino/globals.dep.yml | 6 +- .../arduino-cli/arduino/httpclient.dep.yml | 6 +- .../arduino-cli/arduino/libraries.dep.yml | 6 +- .../arduino/libraries/librariesindex.dep.yml | 6 +- .../libraries/librariesmanager.dep.yml | 6 +- .../arduino-cli/arduino/resources.dep.yml | 6 +- .../arduino-cli/arduino/security.dep.yml | 6 +- .../arduino-cli/arduino/serialutils.dep.yml | 6 +- .../arduino-cli/arduino/sketch.dep.yml | 6 +- .../arduino/arduino-cli/arduino/utils.dep.yml | 6 +- .../arduino-cli/cli/errorcodes.dep.yml | 6 +- .../arduino/arduino-cli/cli/feedback.dep.yml | 6 +- .../arduino/arduino-cli/cli/globals.dep.yml | 6 +- .../arduino/arduino-cli/cli/instance.dep.yml | 6 +- .../arduino/arduino-cli/cli/output.dep.yml | 6 +- .../arduino/arduino-cli/commands.dep.yml | 6 +- .../arduino-cli/commands/board.dep.yml | 6 +- .../arduino-cli/commands/upload.dep.yml | 6 +- .../arduino/arduino-cli/configuration.dep.yml | 6 +- .../arduino/arduino-cli/executils.dep.yml | 6 +- .../arduino/arduino-cli/i18n.dep.yml | 4 +- .../rpc/cc/arduino/cli/commands/v1.dep.yml | 6 +- .../arduino/arduino-cli/table.dep.yml | 6 +- .../arduino/arduino-cli/version.dep.yml | 6 +- .../arduino/board-discovery.dep.yml | 358 ------------------ .../arduino/go-paths-helper.dep.yml | 2 +- .licenses/go/github.com/codeclysm/cc.dep.yml | 32 -- .../extract/{v3.dep.yml => v4.dep.yml} | 6 +- .../github.com/fluxio/iohelpers/line.dep.yml | 194 ---------- .../go/github.com/fluxio/multierror.dep.yml | 194 ---------- .../go/github.com/klauspost/compress.dep.yml | 318 ++++++++++++++++ .../github.com/klauspost/compress/fse.dep.yml | 315 +++++++++++++++ .../klauspost/compress/huff0.dep.yml | 316 ++++++++++++++++ .../compress/internal/cpuinfo.dep.yml | 318 ++++++++++++++++ .../compress/internal/snapref.dep.yml | 347 +++++++++++++++++ .../klauspost/compress/zstd.dep.yml | 315 +++++++++++++++ .../compress/zstd/internal/xxhash.dep.yml | 339 +++++++++++++++++ .licenses/go/github.com/miekg/dns.dep.yml | 54 --- .../go/github.com/oleksandr/bonjour.dep.yml | 34 -- .licenses/go/github.com/ulikunitz/xz.dep.yml | 37 ++ .../ulikunitz/xz/internal/hash.dep.yml | 37 ++ .../ulikunitz/xz/internal/xlog.dep.yml | 38 ++ .../go/github.com/ulikunitz/xz/lzma.dep.yml | 37 ++ .licenses/go/go.bug.st/serial.dep.yml | 4 +- .licenses/go/go.bug.st/serial.v1.dep.yml | 49 --- .../go/go.bug.st/serial.v1/enumerator.dep.yml | 50 --- .../go/go.bug.st/serial.v1/unixutils.dep.yml | 49 --- .../go/go.bug.st/serial/unixutils.dep.yml | 8 +- .../alias.dep.yml => curve25519.dep.yml} | 7 +- .licenses/go/golang.org/x/net/bpf.dep.yml | 63 --- .../go/golang.org/x/net/internal/iana.dep.yml | 63 --- .../golang.org/x/net/internal/socket.dep.yml | 62 --- .licenses/go/golang.org/x/net/ipv4.dep.yml | 63 --- .licenses/go/golang.org/x/net/ipv6.dep.yml | 63 --- DistTasks.yml | 2 +- go.mod | 20 +- go.sum | 60 +-- internal/serial/mocks/Port.go | 121 +++++- 67 files changed, 2663 insertions(+), 1500 deletions(-) delete mode 100644 .licenses/go/github.com/arduino/board-discovery.dep.yml delete mode 100644 .licenses/go/github.com/codeclysm/cc.dep.yml rename .licenses/go/github.com/codeclysm/extract/{v3.dep.yml => v4.dep.yml} (91%) delete mode 100644 .licenses/go/github.com/fluxio/iohelpers/line.dep.yml delete mode 100644 .licenses/go/github.com/fluxio/multierror.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/fse.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/huff0.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/internal/cpuinfo.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/internal/snapref.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/zstd.dep.yml create mode 100644 .licenses/go/github.com/klauspost/compress/zstd/internal/xxhash.dep.yml delete mode 100644 .licenses/go/github.com/miekg/dns.dep.yml delete mode 100644 .licenses/go/github.com/oleksandr/bonjour.dep.yml create mode 100644 .licenses/go/github.com/ulikunitz/xz.dep.yml create mode 100644 .licenses/go/github.com/ulikunitz/xz/internal/hash.dep.yml create mode 100644 .licenses/go/github.com/ulikunitz/xz/internal/xlog.dep.yml create mode 100644 .licenses/go/github.com/ulikunitz/xz/lzma.dep.yml delete mode 100644 .licenses/go/go.bug.st/serial.v1.dep.yml delete mode 100644 .licenses/go/go.bug.st/serial.v1/enumerator.dep.yml delete mode 100644 .licenses/go/go.bug.st/serial.v1/unixutils.dep.yml rename .licenses/go/golang.org/x/crypto/{internal/alias.dep.yml => curve25519.dep.yml} (92%) delete mode 100644 .licenses/go/golang.org/x/net/bpf.dep.yml delete mode 100644 .licenses/go/golang.org/x/net/internal/iana.dep.yml delete mode 100644 .licenses/go/golang.org/x/net/internal/socket.dep.yml delete mode 100644 .licenses/go/golang.org/x/net/ipv4.dep.yml delete mode 100644 .licenses/go/golang.org/x/net/ipv6.dep.yml diff --git a/.github/workflows/check-dependencies-task.yml b/.github/workflows/check-dependencies-task.yml index 8f6de07a..1fa96ccb 100644 --- a/.github/workflows/check-dependencies-task.yml +++ b/.github/workflows/check-dependencies-task.yml @@ -3,7 +3,7 @@ name: Check Dependencies env: # See: https://github.com/actions/setup-go/tree/v2#readme - GO_VERSION: "1.19" + GO_VERSION: "1.23" # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows on: diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml index 0b729903..2868e0b6 100644 --- a/.github/workflows/test-go-task.yml +++ b/.github/workflows/test-go-task.yml @@ -3,7 +3,7 @@ name: Test Go env: # See: https://github.com/actions/setup-go/tree/v2#readme - GO_VERSION: "1.19" + GO_VERSION: "1.23" # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows on: diff --git a/.licensed.yml b/.licensed.yml index 4906556a..25d5cda8 100644 --- a/.licensed.yml +++ b/.licensed.yml @@ -6,6 +6,12 @@ reviewed: - golang.org/x/crypto/curve25519 - google.golang.org/protobuf/encoding/protojson - google.golang.org/protobuf/internal/encoding/json + - github.com/klauspost/compress + - github.com/klauspost/compress/fse + - github.com/klauspost/compress/huff0 + - github.com/klauspost/compress/internal/cpuinfo + - github.com/klauspost/compress/internal/snapref + - github.com/klauspost/compress/zstd # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies/AGPL-3.0/.licensed.yml allowed: diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino.dep.yml index 1829eda7..1b50329e 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores.dep.yml index bd81f42d..4db7455f 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/cores -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/cores license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packageindex.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packageindex.dep.yml index fa811da4..a1a9ad53 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packageindex.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packageindex.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/cores/packageindex -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/cores/packageindex license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packagemanager.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packagemanager.dep.yml index 3a19a59f..2a98e9af 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packagemanager.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/cores/packagemanager.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/cores/packagemanager -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/cores/packagemanager license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery.dep.yml index e8ab3d4a..7333fe0d 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/discovery -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/discovery license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery/discoverymanager.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery/discoverymanager.dep.yml index 8e2c84fd..4eab991b 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery/discoverymanager.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/discovery/discoverymanager.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/discovery/discoverymanager -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/discovery/discoverymanager license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/globals.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/globals.dep.yml index a883eaa4..384f866f 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/globals.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/globals.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/globals -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/globals license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/httpclient.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/httpclient.dep.yml index 68eb6541..cdb9ba4d 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/httpclient.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/httpclient.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/httpclient -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/httpclient license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries.dep.yml index ead92cd1..6cb8090d 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/libraries -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/libraries license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesindex.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesindex.dep.yml index 4f2403a8..d1ae1b74 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesindex.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesindex.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/libraries/librariesindex -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/libraries/librariesindex license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesmanager.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesmanager.dep.yml index 0df3c15a..1d8119ec 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesmanager.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/libraries/librariesmanager.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/libraries/librariesmanager -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/libraries/librariesmanager license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/resources.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/resources.dep.yml index 20bbc09a..9896b30a 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/resources.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/resources.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/resources -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/resources license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/security.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/security.dep.yml index d5dcb512..ecc024a3 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/security.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/security.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/security -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/security license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/serialutils.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/serialutils.dep.yml index 64343a05..203433c7 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/serialutils.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/serialutils.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/serialutils -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/serialutils license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/sketch.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/sketch.dep.yml index f8df363f..778d30a7 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/sketch.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/sketch.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/sketch -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/sketch license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/arduino/utils.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/arduino/utils.dep.yml index fc5df73b..110f64d6 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/arduino/utils.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/arduino/utils.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/arduino/utils -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/arduino/utils license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/cli/errorcodes.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/cli/errorcodes.dep.yml index 9d377037..8ffd6572 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/cli/errorcodes.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/cli/errorcodes.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/cli/errorcodes -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/cli/errorcodes license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/cli/feedback.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/cli/feedback.dep.yml index 63bf4d2e..1310719c 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/cli/feedback.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/cli/feedback.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/cli/feedback -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/cli/feedback license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/cli/globals.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/cli/globals.dep.yml index 3fdfd14f..ff66309b 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/cli/globals.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/cli/globals.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/cli/globals -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/cli/globals license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/cli/instance.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/cli/instance.dep.yml index e5aaf2ea..a6d996a5 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/cli/instance.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/cli/instance.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/cli/instance -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/cli/instance license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/cli/output.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/cli/output.dep.yml index bfbd0777..53b8e7dc 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/cli/output.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/cli/output.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/cli/output -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/cli/output license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/commands.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/commands.dep.yml index 3f7f50af..60b9d7d0 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/commands.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/commands.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/commands -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/commands license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/commands/board.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/commands/board.dep.yml index 03f32c21..578a7576 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/commands/board.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/commands/board.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/commands/board -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/commands/board license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/commands/upload.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/commands/upload.dep.yml index e6c658c4..e6911982 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/commands/upload.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/commands/upload.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/commands/upload -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/commands/upload license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/configuration.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/configuration.dep.yml index 2390e72c..1d247959 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/configuration.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/configuration.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/configuration -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/configuration license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/executils.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/executils.dep.yml index 961c6ca6..d480b834 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/executils.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/executils.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/executils -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/executils license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/i18n.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/i18n.dep.yml index 830393fc..ab465351 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/i18n.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/i18n.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/i18n -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/i18n license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/.licenses/go/github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1.dep.yml index 92ce73cc..30bcbc74 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1 -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1 license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/table.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/table.dep.yml index 05de0a34..0bbeaf16 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/table.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/table.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/table -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/table license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/arduino-cli/version.dep.yml b/.licenses/go/github.com/arduino/arduino-cli/version.dep.yml index 22535399..b9a1b664 100644 --- a/.licenses/go/github.com/arduino/arduino-cli/version.dep.yml +++ b/.licenses/go/github.com/arduino/arduino-cli/version.dep.yml @@ -1,12 +1,12 @@ --- name: github.com/arduino/arduino-cli/version -version: v0.0.0-20221116144942-76251df9241a +version: v0.0.0-20240927141754-d9dd4ba1ed71 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/arduino-cli/version license: gpl-3.0 licenses: -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/LICENSE.txt +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/LICENSE.txt text: |2 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 @@ -682,7 +682,7 @@ licenses: the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . -- sources: arduino-cli@v0.0.0-20221116144942-76251df9241a/README.md +- sources: arduino-cli@v0.0.0-20240927141754-d9dd4ba1ed71/README.md text: |- Arduino CLI is licensed under the [GPL 3.0] license. diff --git a/.licenses/go/github.com/arduino/board-discovery.dep.yml b/.licenses/go/github.com/arduino/board-discovery.dep.yml deleted file mode 100644 index 31d5d06a..00000000 --- a/.licenses/go/github.com/arduino/board-discovery.dep.yml +++ /dev/null @@ -1,358 +0,0 @@ ---- -name: github.com/arduino/board-discovery -version: v0.0.0-20211020061712-fd83c2e3c908 -type: go -summary: 'Package discovery keeps an updated list of the devices connected to the - computer, via serial ports or found in the network Usage: monitor := discovery.New(time.Millisecond) - ctx, _ := context.WithTimeout(context.Background(), 10*time.Second) monitor.Start(ctx) - time.Sleep(10 * time.Second) fmt.Println(monitor.Serial()) fmt.Println(monitor.Network()) - Output: map[/dev/ttyACM0:0x2341/0x8036] map[192.168.1.107:YunShield] You may also - decide to subscribe to the Events channel of the Monitor: monitor := discovery.New(time.Millisecond) - ctx, _ := context.WithTimeout(context.Background(), 10*time.Second) monitor.Start(ctx) - for ev := range monitor.Events { fmt.Println(ev) } Output: {add 0x2341/0x8036 } - {add YunShield}' -homepage: https://pkg.go.dev/github.com/arduino/board-discovery -license: gpl-2.0-or-later -licenses: -- sources: LICENSE - text: |2 - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your - freedom to share and change it. By contrast, the GNU General Public - License is intended to guarantee your freedom to share and change free - software--to make sure the software is free for all its users. This - General Public License applies to most of the Free Software - Foundation's software and to any other program whose authors commit to - using it. (Some other Free Software Foundation software is covered by - the GNU Lesser General Public License instead.) You can apply it to - your programs, too. - - When we speak of free software, we are referring to freedom, not - price. Our General Public Licenses are designed to make sure that you - have the freedom to distribute copies of free software (and charge for - this service if you wish), that you receive source code or can get it - if you want it, that you can change the software or use pieces of it - in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid - anyone to deny you these rights or to ask you to surrender the rights. - These restrictions translate to certain responsibilities for you if you - distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether - gratis or for a fee, you must give the recipients all the rights that - you have. You must make sure that they, too, receive or can get the - source code. And you must show them these terms so they know their - rights. - - We protect your rights with two steps: (1) copyright the software, and - (2) offer you this license which gives you legal permission to copy, - distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain - that everyone understands that there is no warranty for this free - software. If the software is modified by someone else and passed on, we - want its recipients to know that what they have is not the original, so - that any problems introduced by others will not reflect on the original - authors' reputations. - - Finally, any free program is threatened constantly by software - patents. We wish to avoid the danger that redistributors of a free - program will individually obtain patent licenses, in effect making the - program proprietary. To prevent this, we have made it clear that any - patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and - modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains - a notice placed by the copyright holder saying it may be distributed - under the terms of this General Public License. The "Program", below, - refers to any such program or work, and a "work based on the Program" - means either the Program or any derivative work under copyright law: - that is to say, a work containing the Program or a portion of it, - either verbatim or with modifications and/or translated into another - language. (Hereinafter, translation is included without limitation in - the term "modification".) Each licensee is addressed as "you". - - Activities other than copying, distribution and modification are not - covered by this License; they are outside its scope. The act of - running the Program is not restricted, and the output from the Program - is covered only if its contents constitute a work based on the - Program (independent of having been made by running the Program). - Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's - source code as you receive it, in any medium, provided that you - conspicuously and appropriately publish on each copy an appropriate - copyright notice and disclaimer of warranty; keep intact all the - notices that refer to this License and to the absence of any warranty; - and give any other recipients of the Program a copy of this License - along with the Program. - - You may charge a fee for the physical act of transferring a copy, and - you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion - of it, thus forming a work based on the Program, and copy and - distribute such modifications or work under the terms of Section 1 - above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - - These requirements apply to the modified work as a whole. If - identifiable sections of that work are not derived from the Program, - and can be reasonably considered independent and separate works in - themselves, then this License, and its terms, do not apply to those - sections when you distribute them as separate works. But when you - distribute the same sections as part of a whole which is a work based - on the Program, the distribution of the whole must be on the terms of - this License, whose permissions for other licensees extend to the - entire whole, and thus to each and every part regardless of who wrote it. - - Thus, it is not the intent of this section to claim rights or contest - your rights to work written entirely by you; rather, the intent is to - exercise the right to control the distribution of derivative or - collective works based on the Program. - - In addition, mere aggregation of another work not based on the Program - with the Program (or with a work based on the Program) on a volume of - a storage or distribution medium does not bring the other work under - the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, - under Section 2) in object code or executable form under the terms of - Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - - The source code for a work means the preferred form of the work for - making modifications to it. For an executable work, complete source - code means all the source code for all modules it contains, plus any - associated interface definition files, plus the scripts used to - control compilation and installation of the executable. However, as a - special exception, the source code distributed need not include - anything that is normally distributed (in either source or binary - form) with the major components (compiler, kernel, and so on) of the - operating system on which the executable runs, unless that component - itself accompanies the executable. - - If distribution of executable or object code is made by offering - access to copy from a designated place, then offering equivalent - access to copy the source code from the same place counts as - distribution of the source code, even though third parties are not - compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program - except as expressly provided under this License. Any attempt - otherwise to copy, modify, sublicense or distribute the Program is - void, and will automatically terminate your rights under this License. - However, parties who have received copies, or rights, from you under - this License will not have their licenses terminated so long as such - parties remain in full compliance. - - 5. You are not required to accept this License, since you have not - signed it. However, nothing else grants you permission to modify or - distribute the Program or its derivative works. These actions are - prohibited by law if you do not accept this License. Therefore, by - modifying or distributing the Program (or any work based on the - Program), you indicate your acceptance of this License to do so, and - all its terms and conditions for copying, distributing or modifying - the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the - Program), the recipient automatically receives a license from the - original licensor to copy, distribute or modify the Program subject to - these terms and conditions. You may not impose any further - restrictions on the recipients' exercise of the rights granted herein. - You are not responsible for enforcing compliance by third parties to - this License. - - 7. If, as a consequence of a court judgment or allegation of patent - infringement or for any other reason (not limited to patent issues), - conditions are imposed on you (whether by court order, agreement or - otherwise) that contradict the conditions of this License, they do not - excuse you from the conditions of this License. If you cannot - distribute so as to satisfy simultaneously your obligations under this - License and any other pertinent obligations, then as a consequence you - may not distribute the Program at all. For example, if a patent - license would not permit royalty-free redistribution of the Program by - all those who receive copies directly or indirectly through you, then - the only way you could satisfy both it and this License would be to - refrain entirely from distribution of the Program. - - If any portion of this section is held invalid or unenforceable under - any particular circumstance, the balance of the section is intended to - apply and the section as a whole is intended to apply in other - circumstances. - - It is not the purpose of this section to induce you to infringe any - patents or other property right claims or to contest validity of any - such claims; this section has the sole purpose of protecting the - integrity of the free software distribution system, which is - implemented by public license practices. Many people have made - generous contributions to the wide range of software distributed - through that system in reliance on consistent application of that - system; it is up to the author/donor to decide if he or she is willing - to distribute software through any other system and a licensee cannot - impose that choice. - - This section is intended to make thoroughly clear what is believed to - be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in - certain countries either by patents or by copyrighted interfaces, the - original copyright holder who places the Program under this License - may add an explicit geographical distribution limitation excluding - those countries, so that distribution is permitted only in or among - countries not thus excluded. In such case, this License incorporates - the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions - of the General Public License from time to time. Such new versions will - be similar in spirit to the present version, but may differ in detail to - address new problems or concerns. - - Each version is given a distinguishing version number. If the Program - specifies a version number of this License which applies to it and "any - later version", you have the option of following the terms and conditions - either of that version or of any later version published by the Free - Software Foundation. If the Program does not specify a version number of - this License, you may choose any version ever published by the Free Software - Foundation. - - 10. If you wish to incorporate parts of the Program into other free - programs whose distribution conditions are different, write to the author - to ask for permission. For software which is copyrighted by the Free - Software Foundation, write to the Free Software Foundation; we sometimes - make exceptions for this. Our decision will be guided by the two goals - of preserving the free status of all derivatives of our free software and - of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY - FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN - OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES - PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED - OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS - TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE - PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, - REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR - REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, - INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING - OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED - TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY - YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER - PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE - POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest - possible use to the public, the best way to achieve this is to make it - free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest - to attach them to the start of each source file to most effectively - convey the exclusion of warranty; and each file should have at least - the "copyright" line and a pointer to where the full notice is found. - - {description} - Copyright (C) {year} {fullname} - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - Also add information on how to contact you by electronic and paper mail. - - If the program is interactive, make it output a short notice like this - when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - - The hypothetical commands `show w' and `show c' should show the appropriate - parts of the General Public License. Of course, the commands you use may - be called something other than `show w' and `show c'; they could even be - mouse-clicks or menu items--whatever suits your program. - - You should also get your employer (if you work as a programmer) or your - school, if any, to sign a "copyright disclaimer" for the program, if - necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - {signature of Ty Coon}, 1 April 1989 - Ty Coon, President of Vice - - This General Public License does not permit incorporating your program into - proprietary programs. If your program is a subroutine library, you may - consider it more useful to permit linking proprietary applications with the - library. If this is what you want to do, use the GNU Lesser General - Public License instead of this License. -notices: [] diff --git a/.licenses/go/github.com/arduino/go-paths-helper.dep.yml b/.licenses/go/github.com/arduino/go-paths-helper.dep.yml index a85b5285..01899363 100644 --- a/.licenses/go/github.com/arduino/go-paths-helper.dep.yml +++ b/.licenses/go/github.com/arduino/go-paths-helper.dep.yml @@ -1,6 +1,6 @@ --- name: github.com/arduino/go-paths-helper -version: v1.7.0 +version: v1.12.1 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/go-paths-helper diff --git a/.licenses/go/github.com/codeclysm/cc.dep.yml b/.licenses/go/github.com/codeclysm/cc.dep.yml deleted file mode 100644 index 166f837c..00000000 --- a/.licenses/go/github.com/codeclysm/cc.dep.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: github.com/codeclysm/cc -version: v1.2.2 -type: go -summary: -homepage: https://pkg.go.dev/github.com/codeclysm/cc -license: mit -licenses: -- sources: LICENSE - text: | - MIT License - - Copyright (c) 2017 codeclysm - - 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. -notices: [] diff --git a/.licenses/go/github.com/codeclysm/extract/v3.dep.yml b/.licenses/go/github.com/codeclysm/extract/v4.dep.yml similarity index 91% rename from .licenses/go/github.com/codeclysm/extract/v3.dep.yml rename to .licenses/go/github.com/codeclysm/extract/v4.dep.yml index a2c2101e..9defe5f8 100644 --- a/.licenses/go/github.com/codeclysm/extract/v3.dep.yml +++ b/.licenses/go/github.com/codeclysm/extract/v4.dep.yml @@ -1,10 +1,10 @@ --- -name: github.com/codeclysm/extract/v3 -version: v3.0.2 +name: github.com/codeclysm/extract/v4 +version: v4.0.0 type: go summary: Package extract allows to extract archives in zip, tar.gz or tar.bz2 formats easily. -homepage: https://pkg.go.dev/github.com/codeclysm/extract/v3 +homepage: https://pkg.go.dev/github.com/codeclysm/extract/v4 license: mit licenses: - sources: LICENSE diff --git a/.licenses/go/github.com/fluxio/iohelpers/line.dep.yml b/.licenses/go/github.com/fluxio/iohelpers/line.dep.yml deleted file mode 100644 index 1d12c9b5..00000000 --- a/.licenses/go/github.com/fluxio/iohelpers/line.dep.yml +++ /dev/null @@ -1,194 +0,0 @@ ---- -name: github.com/fluxio/iohelpers/line -version: v0.0.0-20160419043813-3a4dd67a94d2 -type: go -summary: -homepage: https://pkg.go.dev/github.com/fluxio/iohelpers/line -license: apache-2.0 -licenses: -- sources: iohelpers@v0.0.0-20160419043813-3a4dd67a94d2/LICENSE - text: |2 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS -- sources: iohelpers@v0.0.0-20160419043813-3a4dd67a94d2/README.md - text: |- - This software is licensed under Apache License, Version 2.0. Please see - [LICENSE](https://raw.githubusercontent.com/fluxio/iohelpers/master/LICENSE) - for more information. - - Copyright© 2016, Flux Factory Inc. -notices: [] diff --git a/.licenses/go/github.com/fluxio/multierror.dep.yml b/.licenses/go/github.com/fluxio/multierror.dep.yml deleted file mode 100644 index efc9cff8..00000000 --- a/.licenses/go/github.com/fluxio/multierror.dep.yml +++ /dev/null @@ -1,194 +0,0 @@ ---- -name: github.com/fluxio/multierror -version: v0.0.0-20160419044231-9c68d39025e5 -type: go -summary: Package multierror defines an error Accumulator to contain multiple errors. -homepage: https://pkg.go.dev/github.com/fluxio/multierror -license: apache-2.0 -licenses: -- sources: LICENSE - text: |2 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS -- sources: README.md - text: |- - This software is licensed under Apache License, Version 2.0. Please see - [LICENSE](https://raw.githubusercontent.com/fluxio/multierror/master/LICENSE) - for more information. - - Copyright© 2016, Flux Factory Inc. -notices: [] diff --git a/.licenses/go/github.com/klauspost/compress.dep.yml b/.licenses/go/github.com/klauspost/compress.dep.yml new file mode 100644 index 00000000..b896bb61 --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress.dep.yml @@ -0,0 +1,318 @@ +--- +name: github.com/klauspost/compress +version: v1.15.13 +type: go +summary: +homepage: https://pkg.go.dev/github.com/klauspost/compress +license: other +licenses: +- sources: LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +- sources: README.md + text: This code is licensed under the same conditions as the original Go code. See + LICENSE file. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/fse.dep.yml b/.licenses/go/github.com/klauspost/compress/fse.dep.yml new file mode 100644 index 00000000..e8ccb2ed --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/fse.dep.yml @@ -0,0 +1,315 @@ +--- +name: github.com/klauspost/compress/fse +version: v1.15.13 +type: go +summary: Package fse provides Finite State Entropy encoding and decoding. +homepage: https://pkg.go.dev/github.com/klauspost/compress/fse +license: other +licenses: +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/huff0.dep.yml b/.licenses/go/github.com/klauspost/compress/huff0.dep.yml new file mode 100644 index 00000000..9aa94279 --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/huff0.dep.yml @@ -0,0 +1,316 @@ +--- +name: github.com/klauspost/compress/huff0 +version: v1.15.13 +type: go +summary: This file contains the specialisation of Decoder.Decompress4X and Decoder.Decompress1X + that use an asm implementation of thir main loops. +homepage: https://pkg.go.dev/github.com/klauspost/compress/huff0 +license: other +licenses: +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/internal/cpuinfo.dep.yml b/.licenses/go/github.com/klauspost/compress/internal/cpuinfo.dep.yml new file mode 100644 index 00000000..db84f1fa --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/internal/cpuinfo.dep.yml @@ -0,0 +1,318 @@ +--- +name: github.com/klauspost/compress/internal/cpuinfo +version: v1.15.13 +type: go +summary: Package cpuinfo gives runtime info about the current CPU. +homepage: https://pkg.go.dev/github.com/klauspost/compress/internal/cpuinfo +license: other +licenses: +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +- sources: compress@v1.15.13/README.md + text: This code is licensed under the same conditions as the original Go code. See + LICENSE file. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/internal/snapref.dep.yml b/.licenses/go/github.com/klauspost/compress/internal/snapref.dep.yml new file mode 100644 index 00000000..479566ce --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/internal/snapref.dep.yml @@ -0,0 +1,347 @@ +--- +name: github.com/klauspost/compress/internal/snapref +version: v1.15.13 +type: go +summary: Package snapref implements the Snappy compression format. +homepage: https://pkg.go.dev/github.com/klauspost/compress/internal/snapref +license: other +licenses: +- sources: LICENSE + text: | + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +- sources: compress@v1.15.13/README.md + text: This code is licensed under the same conditions as the original Go code. See + LICENSE file. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/zstd.dep.yml b/.licenses/go/github.com/klauspost/compress/zstd.dep.yml new file mode 100644 index 00000000..5bde3063 --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/zstd.dep.yml @@ -0,0 +1,315 @@ +--- +name: github.com/klauspost/compress/zstd +version: v1.15.13 +type: go +summary: Package zstd provides decompression of zstandard files. +homepage: https://pkg.go.dev/github.com/klauspost/compress/zstd +license: other +licenses: +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +notices: [] diff --git a/.licenses/go/github.com/klauspost/compress/zstd/internal/xxhash.dep.yml b/.licenses/go/github.com/klauspost/compress/zstd/internal/xxhash.dep.yml new file mode 100644 index 00000000..84591662 --- /dev/null +++ b/.licenses/go/github.com/klauspost/compress/zstd/internal/xxhash.dep.yml @@ -0,0 +1,339 @@ +--- +name: github.com/klauspost/compress/zstd/internal/xxhash +version: v1.15.13 +type: go +summary: +homepage: https://pkg.go.dev/github.com/klauspost/compress/zstd/internal/xxhash +license: other +licenses: +- sources: compress@v1.15.13/LICENSE + text: | + Copyright (c) 2012 The Go Authors. All rights reserved. + Copyright (c) 2019 Klaus Post. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ------------------ + + Files: gzhttp/* + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016-2017 The New York Times Company + + Licensed 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. + + ------------------ + + Files: s2/cmd/internal/readahead/* + + The MIT License (MIT) + + Copyright (c) 2015 Klaus Post + + 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. + + --------------------- + Files: snappy/* + Files: internal/snapref/* + + Copyright (c) 2011 The Snappy-Go Authors. 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. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + 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 + OWNER 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. + + ----------------- + + Files: s2/cmd/internal/filepathx/* + + Copyright 2016 The filepathx Authors + + 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. +- sources: LICENSE.txt + text: | + Copyright (c) 2016 Caleb Spare + + MIT License + + 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. +notices: [] diff --git a/.licenses/go/github.com/miekg/dns.dep.yml b/.licenses/go/github.com/miekg/dns.dep.yml deleted file mode 100644 index b1400ded..00000000 --- a/.licenses/go/github.com/miekg/dns.dep.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: github.com/miekg/dns -version: v1.1.43 -type: go -summary: Package dns implements a full featured interface to the Domain Name System. -homepage: https://pkg.go.dev/github.com/miekg/dns -license: bsd-3-clause -licenses: -- sources: LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. - - As this is fork of the official Go code the same license applies. - Extensions of the original work are copyright (c) 2011 Miek Gieben -- sources: COPYRIGHT - text: | - Copyright 2009 The Go Authors. All rights reserved. Use of this source code - is governed by a BSD-style license that can be found in the LICENSE file. - Extensions of the original work are copyright (c) 2011 Miek Gieben - - Copyright 2011 Miek Gieben. All rights reserved. Use of this source code is - governed by a BSD-style license that can be found in the LICENSE file. - - Copyright 2014 CloudFlare. All rights reserved. Use of this source code is - governed by a BSD-style license that can be found in the LICENSE file. -notices: -- sources: AUTHORS - text: Miek Gieben diff --git a/.licenses/go/github.com/oleksandr/bonjour.dep.yml b/.licenses/go/github.com/oleksandr/bonjour.dep.yml deleted file mode 100644 index 8d44578d..00000000 --- a/.licenses/go/github.com/oleksandr/bonjour.dep.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -name: github.com/oleksandr/bonjour -version: v0.0.0-20210301155756-30f43c61b915 -type: go -summary: bonjour This is a simple Multicast DNS-SD (Apple Bonjour) library written - in Golang. -homepage: https://pkg.go.dev/github.com/oleksandr/bonjour -license: mit -licenses: -- sources: LICENSE - text: |+ - The MIT License (MIT) - - Copyright (c) 2014 Oleksandr Lobunets - - 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. - -notices: [] diff --git a/.licenses/go/github.com/ulikunitz/xz.dep.yml b/.licenses/go/github.com/ulikunitz/xz.dep.yml new file mode 100644 index 00000000..b02e158f --- /dev/null +++ b/.licenses/go/github.com/ulikunitz/xz.dep.yml @@ -0,0 +1,37 @@ +--- +name: github.com/ulikunitz/xz +version: v0.5.12 +type: go +summary: Package xz supports the compression and decompression of xz files. +homepage: https://pkg.go.dev/github.com/ulikunitz/xz +license: bsd-3-clause +licenses: +- sources: LICENSE + text: | + Copyright (c) 2014-2022 Ulrich Kunitz + 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. + + * My name, Ulrich Kunitz, may not be used to endorse or promote products + derived from this software without specific prior written permission. + + 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. +notices: [] diff --git a/.licenses/go/github.com/ulikunitz/xz/internal/hash.dep.yml b/.licenses/go/github.com/ulikunitz/xz/internal/hash.dep.yml new file mode 100644 index 00000000..c9a34e7a --- /dev/null +++ b/.licenses/go/github.com/ulikunitz/xz/internal/hash.dep.yml @@ -0,0 +1,37 @@ +--- +name: github.com/ulikunitz/xz/internal/hash +version: v0.5.12 +type: go +summary: Package hash provides rolling hashes. +homepage: https://pkg.go.dev/github.com/ulikunitz/xz/internal/hash +license: bsd-3-clause +licenses: +- sources: xz@v0.5.12/LICENSE + text: | + Copyright (c) 2014-2022 Ulrich Kunitz + 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. + + * My name, Ulrich Kunitz, may not be used to endorse or promote products + derived from this software without specific prior written permission. + + 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. +notices: [] diff --git a/.licenses/go/github.com/ulikunitz/xz/internal/xlog.dep.yml b/.licenses/go/github.com/ulikunitz/xz/internal/xlog.dep.yml new file mode 100644 index 00000000..a5ec3008 --- /dev/null +++ b/.licenses/go/github.com/ulikunitz/xz/internal/xlog.dep.yml @@ -0,0 +1,38 @@ +--- +name: github.com/ulikunitz/xz/internal/xlog +version: v0.5.12 +type: go +summary: Package xlog provides a simple logging package that allows to disable certain + message categories. +homepage: https://pkg.go.dev/github.com/ulikunitz/xz/internal/xlog +license: bsd-3-clause +licenses: +- sources: xz@v0.5.12/LICENSE + text: | + Copyright (c) 2014-2022 Ulrich Kunitz + 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. + + * My name, Ulrich Kunitz, may not be used to endorse or promote products + derived from this software without specific prior written permission. + + 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. +notices: [] diff --git a/.licenses/go/github.com/ulikunitz/xz/lzma.dep.yml b/.licenses/go/github.com/ulikunitz/xz/lzma.dep.yml new file mode 100644 index 00000000..66a937e5 --- /dev/null +++ b/.licenses/go/github.com/ulikunitz/xz/lzma.dep.yml @@ -0,0 +1,37 @@ +--- +name: github.com/ulikunitz/xz/lzma +version: v0.5.12 +type: go +summary: Package lzma supports the decoding and encoding of LZMA streams. +homepage: https://pkg.go.dev/github.com/ulikunitz/xz/lzma +license: bsd-3-clause +licenses: +- sources: xz@v0.5.12/LICENSE + text: | + Copyright (c) 2014-2022 Ulrich Kunitz + 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. + + * My name, Ulrich Kunitz, may not be used to endorse or promote products + derived from this software without specific prior written permission. + + 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. +notices: [] diff --git a/.licenses/go/go.bug.st/serial.dep.yml b/.licenses/go/go.bug.st/serial.dep.yml index 2d1d07b0..69008aa5 100644 --- a/.licenses/go/go.bug.st/serial.dep.yml +++ b/.licenses/go/go.bug.st/serial.dep.yml @@ -1,6 +1,6 @@ --- name: go.bug.st/serial -version: v1.3.3 +version: v1.6.2 type: go summary: Package serial is a cross-platform serial library for the go language. homepage: https://pkg.go.dev/go.bug.st/serial @@ -9,7 +9,7 @@ licenses: - sources: LICENSE text: |2+ - Copyright (c) 2014-2021, Cristian Maglie. + Copyright (c) 2014-2023, Cristian Maglie. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/.licenses/go/go.bug.st/serial.v1.dep.yml b/.licenses/go/go.bug.st/serial.v1.dep.yml deleted file mode 100644 index 9c39d1fb..00000000 --- a/.licenses/go/go.bug.st/serial.v1.dep.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: go.bug.st/serial.v1 -version: v0.0.0-20191202182710-24a6610f0541 -type: go -summary: Package serial is a cross-platform serial library for the go language. -homepage: https://pkg.go.dev/go.bug.st/serial.v1 -license: bsd-3-clause -licenses: -- sources: LICENSE - text: |2+ - - Copyright (c) 2014-2020, Cristian Maglie. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. 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. - - 3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - 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. - -- sources: README.md - text: |- - The software is release under a BSD 3-clause license - - https://github.com/bugst/go-serial/blob/v1/LICENSE -notices: [] diff --git a/.licenses/go/go.bug.st/serial.v1/enumerator.dep.yml b/.licenses/go/go.bug.st/serial.v1/enumerator.dep.yml deleted file mode 100644 index d69972d2..00000000 --- a/.licenses/go/go.bug.st/serial.v1/enumerator.dep.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -name: go.bug.st/serial.v1/enumerator -version: v0.0.0-20191202182710-24a6610f0541 -type: go -summary: Package enumerator is a golang cross-platform library for USB serial port - discovery. -homepage: https://pkg.go.dev/go.bug.st/serial.v1/enumerator -license: bsd-3-clause -licenses: -- sources: serial.v1@v0.0.0-20191202182710-24a6610f0541/LICENSE - text: |2+ - - Copyright (c) 2014-2020, Cristian Maglie. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. 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. - - 3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - 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. - -- sources: serial.v1@v0.0.0-20191202182710-24a6610f0541/README.md - text: |- - The software is release under a BSD 3-clause license - - https://github.com/bugst/go-serial/blob/v1/LICENSE -notices: [] diff --git a/.licenses/go/go.bug.st/serial.v1/unixutils.dep.yml b/.licenses/go/go.bug.st/serial.v1/unixutils.dep.yml deleted file mode 100644 index a96a2ac2..00000000 --- a/.licenses/go/go.bug.st/serial.v1/unixutils.dep.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: go.bug.st/serial.v1/unixutils -version: v0.0.0-20191202182710-24a6610f0541 -type: go -summary: -homepage: https://pkg.go.dev/go.bug.st/serial.v1/unixutils -license: bsd-3-clause -licenses: -- sources: serial.v1@v0.0.0-20191202182710-24a6610f0541/LICENSE - text: |2+ - - Copyright (c) 2014-2020, Cristian Maglie. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. 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. - - 3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - 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. - -- sources: serial.v1@v0.0.0-20191202182710-24a6610f0541/README.md - text: |- - The software is release under a BSD 3-clause license - - https://github.com/bugst/go-serial/blob/v1/LICENSE -notices: [] diff --git a/.licenses/go/go.bug.st/serial/unixutils.dep.yml b/.licenses/go/go.bug.st/serial/unixutils.dep.yml index 32a5d6b9..56868ecb 100644 --- a/.licenses/go/go.bug.st/serial/unixutils.dep.yml +++ b/.licenses/go/go.bug.st/serial/unixutils.dep.yml @@ -1,15 +1,15 @@ --- name: go.bug.st/serial/unixutils -version: v1.3.3 +version: v1.6.2 type: go summary: homepage: https://pkg.go.dev/go.bug.st/serial/unixutils license: bsd-3-clause licenses: -- sources: serial@v1.3.3/LICENSE +- sources: serial@v1.6.2/LICENSE text: |2+ - Copyright (c) 2014-2021, Cristian Maglie. + Copyright (c) 2014-2023, Cristian Maglie. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -41,7 +41,7 @@ licenses: ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- sources: serial@v1.3.3/README.md +- sources: serial@v1.6.2/README.md text: |- The software is release under a [BSD 3-clause license] diff --git a/.licenses/go/golang.org/x/crypto/internal/alias.dep.yml b/.licenses/go/golang.org/x/crypto/curve25519.dep.yml similarity index 92% rename from .licenses/go/golang.org/x/crypto/internal/alias.dep.yml rename to .licenses/go/golang.org/x/crypto/curve25519.dep.yml index cd614395..9565db0c 100644 --- a/.licenses/go/golang.org/x/crypto/internal/alias.dep.yml +++ b/.licenses/go/golang.org/x/crypto/curve25519.dep.yml @@ -1,9 +1,10 @@ --- -name: golang.org/x/crypto/internal/alias +name: golang.org/x/crypto/curve25519 version: v0.18.0 type: go -summary: Package alias implements memory aliasing tests. -homepage: https://pkg.go.dev/golang.org/x/crypto/internal/alias +summary: Package curve25519 provides an implementation of the X25519 function, which + performs scalar multiplication on the elliptic curve known as Curve25519. +homepage: https://pkg.go.dev/golang.org/x/crypto/curve25519 license: bsd-3-clause licenses: - sources: crypto@v0.18.0/LICENSE diff --git a/.licenses/go/golang.org/x/net/bpf.dep.yml b/.licenses/go/golang.org/x/net/bpf.dep.yml deleted file mode 100644 index 8d05d558..00000000 --- a/.licenses/go/golang.org/x/net/bpf.dep.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -name: golang.org/x/net/bpf -version: v0.20.0 -type: go -summary: Package bpf implements marshaling and unmarshaling of programs for the Berkeley - Packet Filter virtual machine, and provides a Go implementation of the virtual machine. -homepage: https://pkg.go.dev/golang.org/x/net/bpf -license: bsd-3-clause -licenses: -- sources: net@v0.20.0/LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. -- sources: net@v0.20.0/PATENTS - text: | - Additional IP Rights Grant (Patents) - - "This implementation" means the copyrightable works distributed by - Google as part of the Go project. - - Google hereby grants to You a perpetual, worldwide, non-exclusive, - no-charge, royalty-free, irrevocable (except as stated in this section) - patent license to make, have made, use, offer to sell, sell, import, - transfer and otherwise run, modify and propagate the contents of this - implementation of Go, where such license applies only to those patent - claims, both currently owned or controlled by Google and acquired in - the future, licensable by Google that are necessarily infringed by this - implementation of Go. This grant does not include claims that would be - infringed only as a consequence of further modification of this - implementation. If you or your agent or exclusive licensee institute or - order or agree to the institution of patent litigation against any - entity (including a cross-claim or counterclaim in a lawsuit) alleging - that this implementation of Go or any code incorporated within this - implementation of Go constitutes direct or contributory patent - infringement, or inducement of patent infringement, then any patent - rights granted to you under this License for this implementation of Go - shall terminate as of the date such litigation is filed. -notices: [] diff --git a/.licenses/go/golang.org/x/net/internal/iana.dep.yml b/.licenses/go/golang.org/x/net/internal/iana.dep.yml deleted file mode 100644 index 54473855..00000000 --- a/.licenses/go/golang.org/x/net/internal/iana.dep.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -name: golang.org/x/net/internal/iana -version: v0.20.0 -type: go -summary: Package iana provides protocol number resources managed by the Internet Assigned - Numbers Authority (IANA). -homepage: https://pkg.go.dev/golang.org/x/net/internal/iana -license: bsd-3-clause -licenses: -- sources: net@v0.20.0/LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. -- sources: net@v0.20.0/PATENTS - text: | - Additional IP Rights Grant (Patents) - - "This implementation" means the copyrightable works distributed by - Google as part of the Go project. - - Google hereby grants to You a perpetual, worldwide, non-exclusive, - no-charge, royalty-free, irrevocable (except as stated in this section) - patent license to make, have made, use, offer to sell, sell, import, - transfer and otherwise run, modify and propagate the contents of this - implementation of Go, where such license applies only to those patent - claims, both currently owned or controlled by Google and acquired in - the future, licensable by Google that are necessarily infringed by this - implementation of Go. This grant does not include claims that would be - infringed only as a consequence of further modification of this - implementation. If you or your agent or exclusive licensee institute or - order or agree to the institution of patent litigation against any - entity (including a cross-claim or counterclaim in a lawsuit) alleging - that this implementation of Go or any code incorporated within this - implementation of Go constitutes direct or contributory patent - infringement, or inducement of patent infringement, then any patent - rights granted to you under this License for this implementation of Go - shall terminate as of the date such litigation is filed. -notices: [] diff --git a/.licenses/go/golang.org/x/net/internal/socket.dep.yml b/.licenses/go/golang.org/x/net/internal/socket.dep.yml deleted file mode 100644 index 520d750e..00000000 --- a/.licenses/go/golang.org/x/net/internal/socket.dep.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -name: golang.org/x/net/internal/socket -version: v0.20.0 -type: go -summary: Package socket provides a portable interface for socket system calls. -homepage: https://pkg.go.dev/golang.org/x/net/internal/socket -license: bsd-3-clause -licenses: -- sources: net@v0.20.0/LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. -- sources: net@v0.20.0/PATENTS - text: | - Additional IP Rights Grant (Patents) - - "This implementation" means the copyrightable works distributed by - Google as part of the Go project. - - Google hereby grants to You a perpetual, worldwide, non-exclusive, - no-charge, royalty-free, irrevocable (except as stated in this section) - patent license to make, have made, use, offer to sell, sell, import, - transfer and otherwise run, modify and propagate the contents of this - implementation of Go, where such license applies only to those patent - claims, both currently owned or controlled by Google and acquired in - the future, licensable by Google that are necessarily infringed by this - implementation of Go. This grant does not include claims that would be - infringed only as a consequence of further modification of this - implementation. If you or your agent or exclusive licensee institute or - order or agree to the institution of patent litigation against any - entity (including a cross-claim or counterclaim in a lawsuit) alleging - that this implementation of Go or any code incorporated within this - implementation of Go constitutes direct or contributory patent - infringement, or inducement of patent infringement, then any patent - rights granted to you under this License for this implementation of Go - shall terminate as of the date such litigation is filed. -notices: [] diff --git a/.licenses/go/golang.org/x/net/ipv4.dep.yml b/.licenses/go/golang.org/x/net/ipv4.dep.yml deleted file mode 100644 index 8a43a700..00000000 --- a/.licenses/go/golang.org/x/net/ipv4.dep.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -name: golang.org/x/net/ipv4 -version: v0.20.0 -type: go -summary: Package ipv4 implements IP-level socket options for the Internet Protocol - version 4. -homepage: https://pkg.go.dev/golang.org/x/net/ipv4 -license: bsd-3-clause -licenses: -- sources: net@v0.20.0/LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. -- sources: net@v0.20.0/PATENTS - text: | - Additional IP Rights Grant (Patents) - - "This implementation" means the copyrightable works distributed by - Google as part of the Go project. - - Google hereby grants to You a perpetual, worldwide, non-exclusive, - no-charge, royalty-free, irrevocable (except as stated in this section) - patent license to make, have made, use, offer to sell, sell, import, - transfer and otherwise run, modify and propagate the contents of this - implementation of Go, where such license applies only to those patent - claims, both currently owned or controlled by Google and acquired in - the future, licensable by Google that are necessarily infringed by this - implementation of Go. This grant does not include claims that would be - infringed only as a consequence of further modification of this - implementation. If you or your agent or exclusive licensee institute or - order or agree to the institution of patent litigation against any - entity (including a cross-claim or counterclaim in a lawsuit) alleging - that this implementation of Go or any code incorporated within this - implementation of Go constitutes direct or contributory patent - infringement, or inducement of patent infringement, then any patent - rights granted to you under this License for this implementation of Go - shall terminate as of the date such litigation is filed. -notices: [] diff --git a/.licenses/go/golang.org/x/net/ipv6.dep.yml b/.licenses/go/golang.org/x/net/ipv6.dep.yml deleted file mode 100644 index e2a17556..00000000 --- a/.licenses/go/golang.org/x/net/ipv6.dep.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -name: golang.org/x/net/ipv6 -version: v0.20.0 -type: go -summary: Package ipv6 implements IP-level socket options for the Internet Protocol - version 6. -homepage: https://pkg.go.dev/golang.org/x/net/ipv6 -license: bsd-3-clause -licenses: -- sources: net@v0.20.0/LICENSE - text: | - Copyright (c) 2009 The Go Authors. 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. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - 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 - OWNER 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. -- sources: net@v0.20.0/PATENTS - text: | - Additional IP Rights Grant (Patents) - - "This implementation" means the copyrightable works distributed by - Google as part of the Go project. - - Google hereby grants to You a perpetual, worldwide, non-exclusive, - no-charge, royalty-free, irrevocable (except as stated in this section) - patent license to make, have made, use, offer to sell, sell, import, - transfer and otherwise run, modify and propagate the contents of this - implementation of Go, where such license applies only to those patent - claims, both currently owned or controlled by Google and acquired in - the future, licensable by Google that are necessarily infringed by this - implementation of Go. This grant does not include claims that would be - infringed only as a consequence of further modification of this - implementation. If you or your agent or exclusive licensee institute or - order or agree to the institution of patent litigation against any - entity (including a cross-claim or counterclaim in a lawsuit) alleging - that this implementation of Go or any code incorporated within this - implementation of Go constitutes direct or contributory patent - infringement, or inducement of patent infringement, then any patent - rights granted to you under this License for this implementation of Go - shall terminate as of the date such litigation is filed. -notices: [] diff --git a/DistTasks.yml b/DistTasks.yml index 8915f899..89144fbb 100644 --- a/DistTasks.yml +++ b/DistTasks.yml @@ -20,7 +20,7 @@ version: "3" vars: CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild" - GO_VERSION: "1.19" + GO_VERSION: "1.23" CHECKSUM_FILE: "{{.VERSION}}-checksums.txt" tasks: diff --git a/go.mod b/go.mod index 75b05308..f29d6e6b 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/arduino/arduino-cloud-cli -go 1.19 +go 1.23.0 require ( - github.com/arduino/arduino-cli v0.0.0-20221116144942-76251df9241a - github.com/arduino/go-paths-helper v1.7.0 + github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71 + github.com/arduino/go-paths-helper v1.12.1 github.com/arduino/go-win32-utils v1.0.0 github.com/arduino/iot-client-go/v2 v2.0.3 github.com/gofrs/uuid v4.2.0+incompatible @@ -17,7 +17,7 @@ require ( github.com/spf13/viper v1.10.1 github.com/stretchr/testify v1.9.0 go.bug.st/cleanup v1.0.0 - go.bug.st/serial v1.3.3 + go.bug.st/serial v1.6.2 golang.org/x/crypto v0.18.0 golang.org/x/oauth2 v0.21.0 google.golang.org/grpc v1.61.0 @@ -27,18 +27,14 @@ require ( require ( github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/arduino/board-discovery v0.0.0-20211020061712-fd83c2e3c908 // indirect github.com/arduino/go-properties-orderedmap v1.7.1 // indirect github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect github.com/cmaglie/pb v1.0.27 // indirect - github.com/codeclysm/cc v1.2.2 // indirect - github.com/codeclysm/extract/v3 v3.0.2 // indirect + github.com/codeclysm/extract/v4 v4.0.0 // indirect github.com/creack/goselect v0.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/fluxio/iohelpers v0.0.0-20160419043813-3a4dd67a94d2 // indirect - github.com/fluxio/multierror v0.0.0-20160419044231-9c68d39025e5 // indirect github.com/fsnotify/fsnotify v1.5.1 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/h2non/filetype v1.1.3 // indirect @@ -48,23 +44,21 @@ require ( github.com/josharian/intern v1.0.0 // indirect github.com/juju/errors v0.0.0-20210818161939-5560c4c073ff // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/klauspost/compress v1.15.13 // indirect github.com/leonelquinteros/gotext v1.4.0 // indirect github.com/magiconair/properties v1.8.5 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect - github.com/miekg/dns v1.1.43 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/mapstructure v1.4.3 // indirect - github.com/oleksandr/bonjour v0.0.0-20210301155756-30f43c61b915 // indirect github.com/pelletier/go-toml v1.9.4 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmylund/sortutil v0.0.0-20120526081524-abeda66eb583 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/sergi/go-diff v1.3.1 // indirect - github.com/smartystreets/goconvey v1.7.2 // indirect github.com/spf13/afero v1.6.0 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect @@ -72,10 +66,10 @@ require ( github.com/src-d/gcfg v1.4.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/subosito/gotenv v1.2.0 // indirect + github.com/ulikunitz/xz v0.5.12 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect go.bug.st/downloader/v2 v2.1.1 // indirect go.bug.st/relaxed-semver v0.9.0 // indirect - go.bug.st/serial.v1 v0.0.0-20191202182710-24a6610f0541 // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.20.0 // indirect golang.org/x/sys v0.16.0 // indirect diff --git a/go.sum b/go.sum index c375bb31..8eccfc5f 100644 --- a/go.sum +++ b/go.sum @@ -62,20 +62,15 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/arduino/arduino-cli v0.0.0-20221116144942-76251df9241a h1:jbGxP4VJXFXJGYJgA9p5kcJweLNOcaz5tXTgFjaEiRE= -github.com/arduino/arduino-cli v0.0.0-20221116144942-76251df9241a/go.mod h1:pIrqM9m4MCRyMUhguneLOkPxvNydFfup8qZqgjIFcTg= -github.com/arduino/board-discovery v0.0.0-20211020061712-fd83c2e3c908 h1:GgkPq0AbuE/pA7KdXYRvNo5p4JuO2BMBRgfgUXTv9I4= -github.com/arduino/board-discovery v0.0.0-20211020061712-fd83c2e3c908/go.mod h1:HK7SpkEax/3P+0w78iRQx1sz1vCDYYw9RXwHjQTB5i8= +github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71 h1:UsiGQuo0H5l7DmZYuEn20jBiPHSOj8QF80uyoegXE90= +github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71/go.mod h1:jkWY40xUrKH6CYi1ppeFF4h6LS3UaOUMo+fk4zYf74I= github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck= -github.com/arduino/go-paths-helper v1.2.0/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck= -github.com/arduino/go-paths-helper v1.7.0 h1:S9l5BP2aogz1CgyqqnncXt0PLpK4yvwOW/wu/LaR3tc= -github.com/arduino/go-paths-helper v1.7.0/go.mod h1:V82BWgAAp4IbmlybxQdk9Bpkz8M4Qyx+RAFKaG9NuvU= +github.com/arduino/go-paths-helper v1.12.1 h1:WkxiVUxBjKWlLMiMuYy8DcmVrkxdP7aKxQOAq7r2lVM= +github.com/arduino/go-paths-helper v1.12.1/go.mod h1:jcpW4wr0u69GlXhTYydsdsqAjLaYK5n7oWHfKqOG6LM= github.com/arduino/go-properties-orderedmap v1.7.1 h1:HQ9Pn/mk3+XyfrE39EEvaZwJkrvgiVSY5Oq3JSEfOR4= github.com/arduino/go-properties-orderedmap v1.7.1/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk= github.com/arduino/go-win32-utils v1.0.0 h1:/cXB86sOJxOsCHP7sQmXGLkdValwJt56mIwOHYxgQjQ= github.com/arduino/go-win32-utils v1.0.0/go.mod h1:0jqM7doGEAs6DaJCxxhLBUDS5OawrqF48HqXkcEie/Q= -github.com/arduino/iot-client-go/v2 v2.0.2 h1:5Zh8ZtZ+O8WBlvXvbA8Sla18Fvaw+QdQsz0X7DK4XLU= -github.com/arduino/iot-client-go/v2 v2.0.2/go.mod h1:kwX4B2AVEWl5ug94QbQ087xbvLFa9Co//jhbM/Z2eSQ= github.com/arduino/iot-client-go/v2 v2.0.3 h1:/mYkInEgr2a4s3bSFhjCzynBApPcYlpDwsuTQiyMbag= github.com/arduino/iot-client-go/v2 v2.0.3/go.mod h1:kwX4B2AVEWl5ug94QbQ087xbvLFa9Co//jhbM/Z2eSQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= @@ -115,10 +110,8 @@ github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211130200136-a8f946100490/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/codeclysm/cc v1.2.2 h1:1ChS4EvWTjw6bH2sd6QiMcmih0itVVrWdh9MmOliX/I= -github.com/codeclysm/cc v1.2.2/go.mod h1:XtW4ArCNgQwFphcRGG9+sPX5WM1J6/u0gMy5ZdV3obA= -github.com/codeclysm/extract/v3 v3.0.2 h1:sB4LcE3Php7LkhZwN0n2p8GCwZe92PEQutdbGURf5xc= -github.com/codeclysm/extract/v3 v3.0.2/go.mod h1:NKsw+hqua9H+Rlwy/w/3Qgt9jDonYEgB6wJu+25eOKw= +github.com/codeclysm/extract/v4 v4.0.0 h1:H87LFsUNaJTu2e/8p/oiuiUsOK/TaPQ5wxsjPnwPEIY= +github.com/codeclysm/extract/v4 v4.0.0/go.mod h1:SFju1lj6as7FvUgalpSct7torJE0zttbJUWtryPRG6s= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -146,10 +139,6 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fluxio/iohelpers v0.0.0-20160419043813-3a4dd67a94d2 h1:C6sOwknxwWfLBEQ91zhmptlfxf7pVEs5s6wOnDxNpS4= -github.com/fluxio/iohelpers v0.0.0-20160419043813-3a4dd67a94d2/go.mod h1:c7sGIpDbBo0JZZ1tKyC1p5smWf8QcUjK4bFtZjHAecg= -github.com/fluxio/multierror v0.0.0-20160419044231-9c68d39025e5 h1:R8jFW6G/bjoXjWPFrEfw9G5YQDlYhwV4AC+Eonu6wmk= -github.com/fluxio/multierror v0.0.0-20160419044231-9c68d39025e5/go.mod h1:BEUDl7FG1cc76sM0J0x8dqr6RhiL4uqvk6oFkwuNyuM= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= @@ -244,10 +233,7 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/h2non/filetype v1.0.6/go.mod h1:isekKqOuhMj+s/7r3rIeTErIRy4Rub5uBWHfvMusLMU= github.com/h2non/filetype v1.1.3 h1:FKkx9QbD7HR/zjK1Ia5XiBsq9zdLi5Kf3zGyFTAFkGg= github.com/h2non/filetype v1.1.3/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY= github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= @@ -303,27 +289,22 @@ github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/juju/clock v0.0.0-20180524022203-d293bb356ca4/go.mod h1:nD0vlnrUjcjJhqN5WuCWZyzfd5AHZAC9/ajvbSx69xA= -github.com/juju/errors v0.0.0-20150916125642-1b5e39b83d18/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= -github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= github.com/juju/errors v0.0.0-20210818161939-5560c4c073ff h1:WLHwK6yMswDvGUNrkxp4GYnrbQS8WULu1D3qteVdUIg= github.com/juju/errors v0.0.0-20210818161939-5560c4c073ff/go.mod h1:i1eL7XREII6aHpQ2gApI/v6FkVUDEBremNkcBCKYAcY= github.com/juju/loggo v0.0.0-20170605014607-8232ab8918d9/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 h1:UUHMLvzt/31azWTN/ifGWef4WUqvXk0iRqdhdy/2uzI= -github.com/juju/retry v0.0.0-20160928201858-1998d01ba1c3/go.mod h1:OohPQGsr4pnxwD5YljhQ+TZnuVRYpa5irjugL1Yuif4= +github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= github.com/juju/testing v0.0.0-20180517134105-72703b1e95eb/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA= github.com/juju/testing v0.0.0-20200510222523-6c8c298c77a0 h1:+WWUkhnTjV6RNOxkcwk79qrjeyHEHvBzlneueBsatX4= github.com/juju/testing v0.0.0-20200510222523-6c8c298c77a0/go.mod h1:hpGvhGHPVbNBraRLZEhoQwFLMrjK8PSlO4D3nDjKYXo= -github.com/juju/utils v0.0.0-20180808125547-9dfc6dbfb02b/go.mod h1:6/KLg8Wz/y2KVGWEpkK9vMNGkOnu4k/cqs8Z1fKjTOk= -github.com/juju/version v0.0.0-20161031051906-1f41e27e54f2/go.mod h1:kE8gK5X0CImdr7qpSKl3xB2PmpySSmfj7zVbkZFs81U= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.15.13 h1:NFn1Wr8cfnenSJSA46lLq4wHCcBzKTSjnBIexDMMOV0= +github.com/klauspost/compress v1.15.13/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -333,6 +314,7 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leonelquinteros/gotext v1.4.0 h1:2NHPCto5IoMXbrT0bldPrxj0qM5asOCwtb1aUQZ1tys= github.com/leonelquinteros/gotext v1.4.0/go.mod h1:yZGXREmoGTtBvZHNcc+Yfug49G/2spuF/i/Qlsvz1Us= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= @@ -361,8 +343,6 @@ github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5 github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= -github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= @@ -379,8 +359,6 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/oleksandr/bonjour v0.0.0-20210301155756-30f43c61b915 h1:d291KOLbN1GthTPA1fLKyWdclX3k1ZP+CzYtun+a5Es= -github.com/oleksandr/bonjour v0.0.0-20210301155756-30f43c61b915/go.mod h1:MGuVJ1+5TX1SCoO2Sx0eAnjpdRytYla2uC1YIZfkC9c= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= @@ -425,10 +403,6 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs= -github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= -github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY= @@ -462,6 +436,8 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8 github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= +github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= @@ -476,10 +452,8 @@ go.bug.st/downloader/v2 v2.1.1 h1:nyqbUizo3E2IxCCm4YFac4FtSqqFpqWP+Aae5GCMuw4= go.bug.st/downloader/v2 v2.1.1/go.mod h1:VZW2V1iGKV8rJL2ZEGIDzzBeKowYv34AedJz13RzVII= go.bug.st/relaxed-semver v0.9.0 h1:qt0T8W70VCurvsbxRK25fQwiTOFjkzwC/fDOpyPnchQ= go.bug.st/relaxed-semver v0.9.0/go.mod h1:ug0/W/RPYUjliE70Ghxg77RDHmPxqpo7SHV16ijss7Q= -go.bug.st/serial v1.3.3 h1:lOSLGmZSB7qU6pSOaZqlRholjC8SmmFTGv4ib9oPwYo= -go.bug.st/serial v1.3.3/go.mod h1:jDkjqASf/qSjmaOxHSHljwUQ6eHo/ZX/bxJLQqSlvZg= -go.bug.st/serial.v1 v0.0.0-20191202182710-24a6610f0541 h1:eQfoPfT+gNSh63t/oKanQlZyKgblRa/LMZRPIT+MHzA= -go.bug.st/serial.v1 v0.0.0-20191202182710-24a6610f0541/go.mod h1:dRSl/CVCTf56CkXgJMDOdSwNfo2g1orOGE/gBGdvjZw= +go.bug.st/serial v1.6.2 h1:kn9LRX3sdm+WxWKufMlIRndwGfPWsH1/9lCWXQCasq8= +go.bug.st/serial v1.6.2/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= @@ -494,7 +468,6 @@ go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqe go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -golang.org/x/crypto v0.0.0-20180214000028-650f4a345ab4/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -548,7 +521,6 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20180406214816-61147c48b25b/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -624,6 +596,7 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -697,6 +670,7 @@ golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.16.0 h1:m+B6fahuftsE9qjo0VWp2FW0mB3MTJvR0BaMQrq0pmE= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -717,7 +691,6 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= @@ -934,6 +907,7 @@ gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/mgo.v2 v2.0.0-20160818015218-f2b6f6c918c4/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce h1:xcEWjVhvbDy+nHP67nPDDpbYrY+ILlfndk4bRioVHaU= +gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= gopkg.in/src-d/go-billy.v4 v4.3.2 h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg= gopkg.in/src-d/go-billy.v4 v4.3.2/go.mod h1:nDjArDMp+XMs1aFAESLRjfGSgfvoYN0hDfzEk0GjC98= gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOAJK+LsJg= diff --git a/internal/serial/mocks/Port.go b/internal/serial/mocks/Port.go index 97efa4a1..3c4294d1 100644 --- a/internal/serial/mocks/Port.go +++ b/internal/serial/mocks/Port.go @@ -1,10 +1,10 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v2.46.0. DO NOT EDIT. package mocks import ( mock "github.com/stretchr/testify/mock" - go_bug_stserial "go.bug.st/serial" + serial "go.bug.st/serial" time "time" ) @@ -14,10 +14,50 @@ type Port struct { mock.Mock } +// Break provides a mock function with given fields: _a0 +func (_m *Port) Break(_a0 time.Duration) error { + ret := _m.Called(_a0) + + if len(ret) == 0 { + panic("no return value specified for Break") + } + + var r0 error + if rf, ok := ret.Get(0).(func(time.Duration) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + // Close provides a mock function with given fields: func (_m *Port) Close() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for Close") + } + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// Drain provides a mock function with given fields: +func (_m *Port) Drain() error { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Drain") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -29,19 +69,26 @@ func (_m *Port) Close() error { } // GetModemStatusBits provides a mock function with given fields: -func (_m *Port) GetModemStatusBits() (*go_bug_stserial.ModemStatusBits, error) { +func (_m *Port) GetModemStatusBits() (*serial.ModemStatusBits, error) { ret := _m.Called() - var r0 *go_bug_stserial.ModemStatusBits - if rf, ok := ret.Get(0).(func() *go_bug_stserial.ModemStatusBits); ok { + if len(ret) == 0 { + panic("no return value specified for GetModemStatusBits") + } + + var r0 *serial.ModemStatusBits + var r1 error + if rf, ok := ret.Get(0).(func() (*serial.ModemStatusBits, error)); ok { + return rf() + } + if rf, ok := ret.Get(0).(func() *serial.ModemStatusBits); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*go_bug_stserial.ModemStatusBits) + r0 = ret.Get(0).(*serial.ModemStatusBits) } } - var r1 error if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { @@ -55,14 +102,21 @@ func (_m *Port) GetModemStatusBits() (*go_bug_stserial.ModemStatusBits, error) { func (_m *Port) Read(p []byte) (int, error) { ret := _m.Called(p) + if len(ret) == 0 { + panic("no return value specified for Read") + } + var r0 int + var r1 error + if rf, ok := ret.Get(0).(func([]byte) (int, error)); ok { + return rf(p) + } if rf, ok := ret.Get(0).(func([]byte) int); ok { r0 = rf(p) } else { r0 = ret.Get(0).(int) } - var r1 error if rf, ok := ret.Get(1).(func([]byte) error); ok { r1 = rf(p) } else { @@ -76,6 +130,10 @@ func (_m *Port) Read(p []byte) (int, error) { func (_m *Port) ResetInputBuffer() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ResetInputBuffer") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -90,6 +148,10 @@ func (_m *Port) ResetInputBuffer() error { func (_m *Port) ResetOutputBuffer() error { ret := _m.Called() + if len(ret) == 0 { + panic("no return value specified for ResetOutputBuffer") + } + var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() @@ -104,6 +166,10 @@ func (_m *Port) ResetOutputBuffer() error { func (_m *Port) SetDTR(dtr bool) error { ret := _m.Called(dtr) + if len(ret) == 0 { + panic("no return value specified for SetDTR") + } + var r0 error if rf, ok := ret.Get(0).(func(bool) error); ok { r0 = rf(dtr) @@ -115,11 +181,15 @@ func (_m *Port) SetDTR(dtr bool) error { } // SetMode provides a mock function with given fields: mode -func (_m *Port) SetMode(mode *go_bug_stserial.Mode) error { +func (_m *Port) SetMode(mode *serial.Mode) error { ret := _m.Called(mode) + if len(ret) == 0 { + panic("no return value specified for SetMode") + } + var r0 error - if rf, ok := ret.Get(0).(func(*go_bug_stserial.Mode) error); ok { + if rf, ok := ret.Get(0).(func(*serial.Mode) error); ok { r0 = rf(mode) } else { r0 = ret.Error(0) @@ -132,6 +202,10 @@ func (_m *Port) SetMode(mode *go_bug_stserial.Mode) error { func (_m *Port) SetRTS(rts bool) error { ret := _m.Called(rts) + if len(ret) == 0 { + panic("no return value specified for SetRTS") + } + var r0 error if rf, ok := ret.Get(0).(func(bool) error); ok { r0 = rf(rts) @@ -146,6 +220,10 @@ func (_m *Port) SetRTS(rts bool) error { func (_m *Port) SetReadTimeout(t time.Duration) error { ret := _m.Called(t) + if len(ret) == 0 { + panic("no return value specified for SetReadTimeout") + } + var r0 error if rf, ok := ret.Get(0).(func(time.Duration) error); ok { r0 = rf(t) @@ -160,14 +238,21 @@ func (_m *Port) SetReadTimeout(t time.Duration) error { func (_m *Port) Write(p []byte) (int, error) { ret := _m.Called(p) + if len(ret) == 0 { + panic("no return value specified for Write") + } + var r0 int + var r1 error + if rf, ok := ret.Get(0).(func([]byte) (int, error)); ok { + return rf(p) + } if rf, ok := ret.Get(0).(func([]byte) int); ok { r0 = rf(p) } else { r0 = ret.Get(0).(int) } - var r1 error if rf, ok := ret.Get(1).(func([]byte) error); ok { r1 = rf(p) } else { @@ -176,3 +261,17 @@ func (_m *Port) Write(p []byte) (int, error) { return r0, r1 } + +// NewPort creates a new instance of Port. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewPort(t interface { + mock.TestingT + Cleanup(func()) +}) *Port { + mock := &Port{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} From 1df3c4608fd1557f1d9fffa25c85a3b4bbf2fca3 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Wed, 6 Nov 2024 11:29:27 +0100 Subject: [PATCH 08/13] Upgrade iot client GO to version 3.0.0 (#169) --- .github/workflows/check-dependencies-task.yml | 8 +- .github/workflows/release-go-task.yml | 4 +- .github/workflows/test-go-task.yml | 4 +- .../iot-client-go/{v2.dep.yml => v3.dep.yml} | 6 +- .licenses/go/golang.org/x/oauth2.dep.yml | 6 +- .../x/oauth2/clientcredentials.dep.yml | 8 +- .../go/golang.org/x/oauth2/internal.dep.yml | 8 +- command/dashboard/dashboard.go | 2 +- command/device/createlora.go | 2 +- command/device/device.go | 2 +- command/device/provision.go | 2 +- command/ota/massupload.go | 2 +- command/ota/massupload_test.go | 2 +- command/template/apply.go | 2 +- command/thing/bind.go | 2 +- command/thing/thing.go | 2 +- go.mod | 6 +- go.sum | 8 +- internal/iot/client.go | 108 +++++++++--------- internal/iot/error.go | 2 +- internal/iot/token.go | 2 +- internal/template/dashboard.go | 2 +- internal/template/extract.go | 2 +- internal/template/load.go | 2 +- internal/template/load_test.go | 2 +- 25 files changed, 98 insertions(+), 98 deletions(-) rename .licenses/go/github.com/arduino/iot-client-go/{v2.dep.yml => v3.dep.yml} (85%) diff --git a/.github/workflows/check-dependencies-task.yml b/.github/workflows/check-dependencies-task.yml index 1fa96ccb..ee00aad0 100644 --- a/.github/workflows/check-dependencies-task.yml +++ b/.github/workflows/check-dependencies-task.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install licensed uses: jonabc/setup-licensed@v1 @@ -43,7 +43,7 @@ jobs: version: 3.x - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -81,7 +81,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install licensed uses: jonabc/setup-licensed@v1 @@ -90,7 +90,7 @@ jobs: version: 3.x - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index abbfcc14..57c1e886 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -55,7 +55,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml index 2868e0b6..45484e16 100644 --- a/.github/workflows/test-go-task.yml +++ b/.github/workflows/test-go-task.yml @@ -75,10 +75,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} diff --git a/.licenses/go/github.com/arduino/iot-client-go/v2.dep.yml b/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml similarity index 85% rename from .licenses/go/github.com/arduino/iot-client-go/v2.dep.yml rename to .licenses/go/github.com/arduino/iot-client-go/v3.dep.yml index 43ef0bb2..070abedd 100644 --- a/.licenses/go/github.com/arduino/iot-client-go/v2.dep.yml +++ b/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml @@ -1,9 +1,9 @@ --- -name: github.com/arduino/iot-client-go/v2 -version: v2.0.3 +name: github.com/arduino/iot-client-go/v3 +version: v3.0.1 type: go summary: -homepage: https://pkg.go.dev/github.com/arduino/iot-client-go/v2 +homepage: https://pkg.go.dev/github.com/arduino/iot-client-go/v3 license: apache-2.0 licenses: - sources: LICENSE diff --git a/.licenses/go/golang.org/x/oauth2.dep.yml b/.licenses/go/golang.org/x/oauth2.dep.yml index 7be49c5b..fec14f35 100644 --- a/.licenses/go/golang.org/x/oauth2.dep.yml +++ b/.licenses/go/golang.org/x/oauth2.dep.yml @@ -1,6 +1,6 @@ --- name: golang.org/x/oauth2 -version: v0.21.0 +version: v0.23.0 type: go summary: Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests, as specified in RFC 6749. @@ -9,7 +9,7 @@ license: bsd-3-clause licenses: - sources: LICENSE text: | - 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 @@ -21,7 +21,7 @@ licenses: 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. diff --git a/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml b/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml index f5cc2b56..8421ec51 100644 --- a/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml +++ b/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml @@ -1,15 +1,15 @@ --- name: golang.org/x/oauth2/clientcredentials -version: v0.21.0 +version: v0.23.0 type: go summary: Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0". homepage: https://pkg.go.dev/golang.org/x/oauth2/clientcredentials license: bsd-3-clause licenses: -- sources: oauth2@v0.21.0/LICENSE +- sources: oauth2@v0.23.0/LICENSE text: | - 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 @@ -21,7 +21,7 @@ licenses: 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. diff --git a/.licenses/go/golang.org/x/oauth2/internal.dep.yml b/.licenses/go/golang.org/x/oauth2/internal.dep.yml index 4d1daff8..7267f93c 100644 --- a/.licenses/go/golang.org/x/oauth2/internal.dep.yml +++ b/.licenses/go/golang.org/x/oauth2/internal.dep.yml @@ -1,14 +1,14 @@ --- name: golang.org/x/oauth2/internal -version: v0.21.0 +version: v0.23.0 type: go summary: Package internal contains support packages for oauth2 package. homepage: https://pkg.go.dev/golang.org/x/oauth2/internal license: bsd-3-clause licenses: -- sources: oauth2@v0.21.0/LICENSE +- sources: oauth2@v0.23.0/LICENSE text: | - 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 @@ -20,7 +20,7 @@ licenses: 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. diff --git a/command/dashboard/dashboard.go b/command/dashboard/dashboard.go index 431fb6b4..a47abeb6 100644 --- a/command/dashboard/dashboard.go +++ b/command/dashboard/dashboard.go @@ -18,7 +18,7 @@ package dashboard import ( - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) // DashboardInfo contains the most interesting diff --git a/command/device/createlora.go b/command/device/createlora.go index 06542bad..84c9509d 100644 --- a/command/device/createlora.go +++ b/command/device/createlora.go @@ -26,7 +26,7 @@ import ( "github.com/arduino/arduino-cloud-cli/arduino/cli" "github.com/arduino/arduino-cloud-cli/config" "github.com/arduino/arduino-cloud-cli/internal/iot" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/sirupsen/logrus" "go.bug.st/serial" ) diff --git a/command/device/device.go b/command/device/device.go index 8c9dede1..40f91b47 100644 --- a/command/device/device.go +++ b/command/device/device.go @@ -19,7 +19,7 @@ package device import ( "github.com/arduino/arduino-cloud-cli/command/tag" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) // DeviceInfo contains the most interesting diff --git a/command/device/provision.go b/command/device/provision.go index 2515cb3a..89ac0cab 100644 --- a/command/device/provision.go +++ b/command/device/provision.go @@ -29,7 +29,7 @@ import ( "github.com/arduino/arduino-cloud-cli/internal/binary" "github.com/arduino/arduino-cloud-cli/internal/serial" "github.com/arduino/go-paths-helper" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/sirupsen/logrus" ) diff --git a/command/ota/massupload.go b/command/ota/massupload.go index 1fbffa38..efa3d689 100644 --- a/command/ota/massupload.go +++ b/command/ota/massupload.go @@ -31,7 +31,7 @@ import ( "github.com/arduino/arduino-cloud-cli/internal/ota" otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) const ( diff --git a/command/ota/massupload_test.go b/command/ota/massupload_test.go index ba50d9fa..1b3676c3 100644 --- a/command/ota/massupload_test.go +++ b/command/ota/massupload_test.go @@ -25,7 +25,7 @@ import ( "testing" otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/gofrs/uuid" "github.com/stretchr/testify/assert" ) diff --git a/command/template/apply.go b/command/template/apply.go index 8ba09e4c..b0630ca1 100644 --- a/command/template/apply.go +++ b/command/template/apply.go @@ -31,7 +31,7 @@ import ( "github.com/arduino/arduino-cloud-cli/config" "github.com/arduino/arduino-cloud-cli/internal/iot" storageapi "github.com/arduino/arduino-cloud-cli/internal/storage-api" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/gofrs/uuid" "github.com/sirupsen/logrus" ) diff --git a/command/thing/bind.go b/command/thing/bind.go index c6ee8983..7fdc217d 100644 --- a/command/thing/bind.go +++ b/command/thing/bind.go @@ -23,7 +23,7 @@ import ( "github.com/arduino/arduino-cloud-cli/config" "github.com/arduino/arduino-cloud-cli/internal/iot" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) // BindParams contains the parameters needed to diff --git a/command/thing/thing.go b/command/thing/thing.go index 8b10defb..61ba305b 100644 --- a/command/thing/thing.go +++ b/command/thing/thing.go @@ -19,7 +19,7 @@ package thing import ( "github.com/arduino/arduino-cloud-cli/command/tag" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) // ThingInfo contains the main parameters of diff --git a/go.mod b/go.mod index f29d6e6b..9b6fd915 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,12 @@ module github.com/arduino/arduino-cloud-cli -go 1.23.0 +go 1.23 require ( github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71 github.com/arduino/go-paths-helper v1.12.1 github.com/arduino/go-win32-utils v1.0.0 - github.com/arduino/iot-client-go/v2 v2.0.3 + github.com/arduino/iot-client-go/v3 v3.0.1 github.com/gofrs/uuid v4.2.0+incompatible github.com/google/go-cmp v0.6.0 github.com/howeyc/crc16 v0.0.0-20171223171357-2b2a61e366a6 @@ -19,7 +19,7 @@ require ( go.bug.st/cleanup v1.0.0 go.bug.st/serial v1.6.2 golang.org/x/crypto v0.18.0 - golang.org/x/oauth2 v0.21.0 + golang.org/x/oauth2 v0.23.0 google.golang.org/grpc v1.61.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools v2.2.0+incompatible diff --git a/go.sum b/go.sum index 8eccfc5f..8f7e0be0 100644 --- a/go.sum +++ b/go.sum @@ -71,8 +71,8 @@ github.com/arduino/go-properties-orderedmap v1.7.1 h1:HQ9Pn/mk3+XyfrE39EEvaZwJkr github.com/arduino/go-properties-orderedmap v1.7.1/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk= github.com/arduino/go-win32-utils v1.0.0 h1:/cXB86sOJxOsCHP7sQmXGLkdValwJt56mIwOHYxgQjQ= github.com/arduino/go-win32-utils v1.0.0/go.mod h1:0jqM7doGEAs6DaJCxxhLBUDS5OawrqF48HqXkcEie/Q= -github.com/arduino/iot-client-go/v2 v2.0.3 h1:/mYkInEgr2a4s3bSFhjCzynBApPcYlpDwsuTQiyMbag= -github.com/arduino/iot-client-go/v2 v2.0.3/go.mod h1:kwX4B2AVEWl5ug94QbQ087xbvLFa9Co//jhbM/Z2eSQ= +github.com/arduino/iot-client-go/v3 v3.0.1 h1:AwkctEtP7ilVXBOF2yZPJZpjpuUmKNGr/OdYxPx/4QQ= +github.com/arduino/iot-client-go/v3 v3.0.1/go.mod h1:r2QEAP5Jalkr0YWNPhFl0EJzFRQNy24wN5CVbn11f64= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= @@ -582,8 +582,8 @@ golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= +golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/internal/iot/client.go b/internal/iot/client.go index 788a4e05..e4882d6f 100644 --- a/internal/iot/client.go +++ b/internal/iot/client.go @@ -23,7 +23,7 @@ import ( "os" "github.com/arduino/arduino-cloud-cli/config" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "golang.org/x/oauth2" ) @@ -70,9 +70,9 @@ func (cl *Client) DeviceCreate(ctx context.Context, fqbn, name, serial, dType st payload.ConnectionType = cType } - req := cl.api.DevicesV2Api.DevicesV2Create(ctx) + req := cl.api.DevicesV2API.DevicesV2Create(ctx) req = req.CreateDevicesV2Payload(payload) - dev, _, err := cl.api.DevicesV2Api.DevicesV2CreateExecute(req) + dev, _, err := cl.api.DevicesV2API.DevicesV2CreateExecute(req) if err != nil { err = fmt.Errorf("creating device, %w", errorDetail(err)) return nil, err @@ -98,9 +98,9 @@ func (cl *Client) DeviceLoraCreate(ctx context.Context, name, serial, devType, e UserId: "me", } - req := cl.api.LoraDevicesV1Api.LoraDevicesV1Create(ctx) + req := cl.api.LoraDevicesV1API.LoraDevicesV1Create(ctx) req = req.CreateLoraDevicesV1Payload(payload) - dev, _, err := cl.api.LoraDevicesV1Api.LoraDevicesV1CreateExecute(req) + dev, _, err := cl.api.LoraDevicesV1API.LoraDevicesV1CreateExecute(req) if err != nil { err = fmt.Errorf("creating lora device: %w", errorDetail(err)) return nil, err @@ -117,18 +117,18 @@ func (cl *Client) DevicePassSet(ctx context.Context, id string) (*iotclient.Ardu } // Fetch suggested password - req := cl.api.DevicesV2PassApi.DevicesV2PassGet(ctx, id) + req := cl.api.DevicesV2PassAPI.DevicesV2PassGet(ctx, id) req = req.SuggestedPassword(true) - pass, _, err := cl.api.DevicesV2PassApi.DevicesV2PassGetExecute(req) + pass, _, err := cl.api.DevicesV2PassAPI.DevicesV2PassGetExecute(req) if err != nil { err = fmt.Errorf("fetching device suggested password: %w", errorDetail(err)) return nil, err } // Set password to the suggested one - reqSet := cl.api.DevicesV2PassApi.DevicesV2PassSet(ctx, id) + reqSet := cl.api.DevicesV2PassAPI.DevicesV2PassSet(ctx, id) reqSet = reqSet.Devicev2Pass(iotclient.Devicev2Pass{Password: pass.SuggestedPassword}) - pass, _, err = cl.api.DevicesV2PassApi.DevicesV2PassSetExecute(reqSet) + pass, _, err = cl.api.DevicesV2PassAPI.DevicesV2PassSetExecute(reqSet) if err != nil { err = fmt.Errorf("setting device password: %w", errorDetail(err)) return nil, err @@ -144,8 +144,8 @@ func (cl *Client) DeviceDelete(ctx context.Context, id string) error { return err } - req := cl.api.DevicesV2Api.DevicesV2Delete(ctx, id) - _, err = cl.api.DevicesV2Api.DevicesV2DeleteExecute(req) + req := cl.api.DevicesV2API.DevicesV2Delete(ctx, id) + _, err = cl.api.DevicesV2API.DevicesV2DeleteExecute(req) if err != nil { err = fmt.Errorf("deleting device: %w", errorDetail(err)) return err @@ -161,7 +161,7 @@ func (cl *Client) DeviceList(ctx context.Context, tags map[string]string) ([]iot return nil, err } - req := cl.api.DevicesV2Api.DevicesV2List(ctx) + req := cl.api.DevicesV2API.DevicesV2List(ctx) if tags != nil { t := make([]string, 0, len(tags)) for key, val := range tags { @@ -170,7 +170,7 @@ func (cl *Client) DeviceList(ctx context.Context, tags map[string]string) ([]iot } req = req.Tags(t) } - devices, _, err := cl.api.DevicesV2Api.DevicesV2ListExecute(req) + devices, _, err := cl.api.DevicesV2API.DevicesV2ListExecute(req) if err != nil { err = fmt.Errorf("listing devices: %w", errorDetail(err)) return nil, err @@ -186,8 +186,8 @@ func (cl *Client) DeviceShow(ctx context.Context, id string) (*iotclient.Arduino return nil, err } - req := cl.api.DevicesV2Api.DevicesV2Show(ctx, id) - dev, _, err := cl.api.DevicesV2Api.DevicesV2ShowExecute(req) + req := cl.api.DevicesV2API.DevicesV2Show(ctx, id) + dev, _, err := cl.api.DevicesV2API.DevicesV2ShowExecute(req) if err != nil { err = fmt.Errorf("retrieving device, %w", errorDetail(err)) return nil, err @@ -202,9 +202,9 @@ func (cl *Client) DeviceNetworkCredentials(ctx context.Context, deviceType, conn return nil, err } - req := cl.api.NetworkCredentialsV1Api.NetworkCredentialsV1Show(ctx, deviceType) + req := cl.api.NetworkCredentialsV1API.NetworkCredentialsV1Show(ctx, deviceType) req = req.Connection(connection) - dev, _, err := cl.api.NetworkCredentialsV1Api.NetworkCredentialsV1ShowExecute(req) + dev, _, err := cl.api.NetworkCredentialsV1API.NetworkCredentialsV1ShowExecute(req) if err != nil { err = fmt.Errorf("retrieving device network configuration, %w", errorDetail(err)) return nil, err @@ -220,11 +220,11 @@ func (cl *Client) DeviceOTA(ctx context.Context, id string, file *os.File, expir return err } - req := cl.api.DevicesV2OtaApi.DevicesV2OtaUpload(ctx, id) + req := cl.api.DevicesV2OtaAPI.DevicesV2OtaUpload(ctx, id) req = req.ExpireInMins(int32(expireMins)) req = req.Async(true) req = req.OtaFile(file) - _, resp, err := cl.api.DevicesV2OtaApi.DevicesV2OtaUploadExecute(req) + _, resp, err := cl.api.DevicesV2OtaAPI.DevicesV2OtaUploadExecute(req) if err != nil { // 409 (Conflict) is the status code for an already existing OTA in progress for the same device. Handling it in a different way. if resp != nil && resp.StatusCode == 409 { @@ -243,9 +243,9 @@ func (cl *Client) DeviceTagsCreate(ctx context.Context, id string, tags map[stri } for key, val := range tags { - req := cl.api.DevicesV2TagsApi.DevicesV2TagsUpsert(ctx, id) + req := cl.api.DevicesV2TagsAPI.DevicesV2TagsUpsert(ctx, id) req = req.Tag(iotclient.Tag{Key: key, Value: val}) - _, err := cl.api.DevicesV2TagsApi.DevicesV2TagsUpsertExecute(req) + _, err := cl.api.DevicesV2TagsAPI.DevicesV2TagsUpsertExecute(req) if err != nil { err = fmt.Errorf("cannot create tag %s: %w", key, errorDetail(err)) return err @@ -263,8 +263,8 @@ func (cl *Client) DeviceTagsDelete(ctx context.Context, id string, keys []string } for _, key := range keys { - req := cl.api.DevicesV2TagsApi.DevicesV2TagsDelete(ctx, id, key) - _, err := cl.api.DevicesV2TagsApi.DevicesV2TagsDeleteExecute(req) + req := cl.api.DevicesV2TagsAPI.DevicesV2TagsDelete(ctx, id, key) + _, err := cl.api.DevicesV2TagsAPI.DevicesV2TagsDeleteExecute(req) if err != nil { err = fmt.Errorf("cannot delete tag %s: %w", key, errorDetail(err)) return err @@ -281,8 +281,8 @@ func (cl *Client) LoraFrequencyPlansList(ctx context.Context) ([]iotclient.Ardui return nil, err } - req := cl.api.LoraFreqPlanV1Api.LoraFreqPlanV1List(ctx) - freqs, _, err := cl.api.LoraFreqPlanV1Api.LoraFreqPlanV1ListExecute(req) + req := cl.api.LoraFreqPlanV1API.LoraFreqPlanV1List(ctx) + freqs, _, err := cl.api.LoraFreqPlanV1API.LoraFreqPlanV1ListExecute(req) if err != nil { err = fmt.Errorf("listing lora frequency plans: %w", errorDetail(err)) return nil, err @@ -304,9 +304,9 @@ func (cl *Client) CertificateCreate(ctx context.Context, id, csr string) (*iotcl Enabled: true, } - req := cl.api.DevicesV2CertsApi.DevicesV2CertsCreate(ctx, id) + req := cl.api.DevicesV2CertsAPI.DevicesV2CertsCreate(ctx, id) req = req.CreateDevicesV2CertsPayload(cert) - newCert, _, err := cl.api.DevicesV2CertsApi.DevicesV2CertsCreateExecute(req) + newCert, _, err := cl.api.DevicesV2CertsAPI.DevicesV2CertsCreateExecute(req) if err != nil { err = fmt.Errorf("creating certificate, %w", errorDetail(err)) return nil, err @@ -322,10 +322,10 @@ func (cl *Client) ThingCreate(ctx context.Context, thing *iotclient.ThingCreate, return nil, err } - req := cl.api.ThingsV2Api.ThingsV2Create(ctx) + req := cl.api.ThingsV2API.ThingsV2Create(ctx) req = req.ThingCreate(*thing) req = req.Force(force) - newThing, _, err := cl.api.ThingsV2Api.ThingsV2CreateExecute(req) + newThing, _, err := cl.api.ThingsV2API.ThingsV2CreateExecute(req) if err != nil { return nil, fmt.Errorf("%s: %w", "adding new thing", errorDetail(err)) } @@ -339,10 +339,10 @@ func (cl *Client) ThingUpdate(ctx context.Context, id string, thing *iotclient.T return err } - req := cl.api.ThingsV2Api.ThingsV2Update(ctx, id) + req := cl.api.ThingsV2API.ThingsV2Update(ctx, id) req = req.Force(force) req = req.ThingUpdate(*thing) - _, _, err = cl.api.ThingsV2Api.ThingsV2UpdateExecute(req) + _, _, err = cl.api.ThingsV2API.ThingsV2UpdateExecute(req) if err != nil { return fmt.Errorf("%s: %v", "updating thing", errorDetail(err)) } @@ -356,8 +356,8 @@ func (cl *Client) ThingDelete(ctx context.Context, id string) error { return err } - req := cl.api.ThingsV2Api.ThingsV2Delete(ctx, id) - _, err = cl.api.ThingsV2Api.ThingsV2DeleteExecute(req) + req := cl.api.ThingsV2API.ThingsV2Delete(ctx, id) + _, err = cl.api.ThingsV2API.ThingsV2DeleteExecute(req) if err != nil { err = fmt.Errorf("deleting thing: %w", errorDetail(err)) return err @@ -372,8 +372,8 @@ func (cl *Client) ThingShow(ctx context.Context, id string) (*iotclient.ArduinoT return nil, err } - req := cl.api.ThingsV2Api.ThingsV2Show(ctx, id) - thing, _, err := cl.api.ThingsV2Api.ThingsV2ShowExecute(req) + req := cl.api.ThingsV2API.ThingsV2Show(ctx, id) + thing, _, err := cl.api.ThingsV2API.ThingsV2ShowExecute(req) if err != nil { return nil, fmt.Errorf("retrieving thing, %w", errorDetail(err)) } @@ -387,10 +387,10 @@ func (cl *Client) ThingClone(ctx context.Context, id, newName string) (*iotclien return nil, err } - req := cl.api.ThingsV2Api.ThingsV2Clone(ctx, id) + req := cl.api.ThingsV2API.ThingsV2Clone(ctx, id) includeTags := true req = req.ThingClone(iotclient.ThingClone{Name: newName, IncludeTags: &includeTags}) - thing, _, err := cl.api.ThingsV2Api.ThingsV2CloneExecute(req) + thing, _, err := cl.api.ThingsV2API.ThingsV2CloneExecute(req) if err != nil { return nil, fmt.Errorf("cloning thing thing, %w", errorDetail(err)) } @@ -404,7 +404,7 @@ func (cl *Client) ThingList(ctx context.Context, ids []string, device *string, p return nil, err } - req := cl.api.ThingsV2Api.ThingsV2List(ctx) + req := cl.api.ThingsV2API.ThingsV2List(ctx) req = req.ShowProperties(props) if ids != nil { req = req.Ids(ids) @@ -422,7 +422,7 @@ func (cl *Client) ThingList(ctx context.Context, ids []string, device *string, p } req = req.Tags(t) } - things, _, err := cl.api.ThingsV2Api.ThingsV2ListExecute(req) + things, _, err := cl.api.ThingsV2API.ThingsV2ListExecute(req) if err != nil { err = fmt.Errorf("retrieving things, %w", errorDetail(err)) return nil, err @@ -438,9 +438,9 @@ func (cl *Client) ThingTagsCreate(ctx context.Context, id string, tags map[strin } for key, val := range tags { - req := cl.api.ThingsV2TagsApi.ThingsV2TagsUpsert(ctx, id) + req := cl.api.ThingsV2TagsAPI.ThingsV2TagsUpsert(ctx, id) req = req.Tag(iotclient.Tag{Key: key, Value: val}) - _, err := cl.api.ThingsV2TagsApi.ThingsV2TagsUpsertExecute(req) + _, err := cl.api.ThingsV2TagsAPI.ThingsV2TagsUpsertExecute(req) if err != nil { err = fmt.Errorf("cannot create tag %s: %w", key, errorDetail(err)) return err @@ -458,8 +458,8 @@ func (cl *Client) ThingTagsDelete(ctx context.Context, id string, keys []string) } for _, key := range keys { - req := cl.api.ThingsV2TagsApi.ThingsV2TagsDelete(ctx, id, key) - _, err := cl.api.ThingsV2TagsApi.ThingsV2TagsDeleteExecute(req) + req := cl.api.ThingsV2TagsAPI.ThingsV2TagsDelete(ctx, id, key) + _, err := cl.api.ThingsV2TagsAPI.ThingsV2TagsDeleteExecute(req) if err != nil { err = fmt.Errorf("cannot delete tag %s: %w", key, errorDetail(err)) return err @@ -475,9 +475,9 @@ func (cl *Client) DashboardCreate(ctx context.Context, dashboard *iotclient.Dash return nil, err } - req := cl.api.DashboardsV2Api.DashboardsV2Create(ctx) + req := cl.api.DashboardsV2API.DashboardsV2Create(ctx) req = req.Dashboardv2(*dashboard) - newDashboard, _, err := cl.api.DashboardsV2Api.DashboardsV2CreateExecute(req) + newDashboard, _, err := cl.api.DashboardsV2API.DashboardsV2CreateExecute(req) if err != nil { return nil, fmt.Errorf("%s: %w", "adding new dashboard", errorDetail(err)) } @@ -492,8 +492,8 @@ func (cl *Client) DashboardShow(ctx context.Context, id string) (*iotclient.Ardu return nil, err } - req := cl.api.DashboardsV2Api.DashboardsV2Show(ctx, id) - dashboard, _, err := cl.api.DashboardsV2Api.DashboardsV2ShowExecute(req) + req := cl.api.DashboardsV2API.DashboardsV2Show(ctx, id) + dashboard, _, err := cl.api.DashboardsV2API.DashboardsV2ShowExecute(req) if err != nil { err = fmt.Errorf("retrieving dashboard, %w", errorDetail(err)) return nil, err @@ -508,8 +508,8 @@ func (cl *Client) DashboardList(ctx context.Context) ([]iotclient.ArduinoDashboa return nil, err } - req := cl.api.DashboardsV2Api.DashboardsV2List(ctx) - dashboards, _, err := cl.api.DashboardsV2Api.DashboardsV2ListExecute(req) + req := cl.api.DashboardsV2API.DashboardsV2List(ctx) + dashboards, _, err := cl.api.DashboardsV2API.DashboardsV2ListExecute(req) if err != nil { err = fmt.Errorf("listing dashboards: %w", errorDetail(err)) return nil, err @@ -524,8 +524,8 @@ func (cl *Client) DashboardDelete(ctx context.Context, id string) error { return err } - req := cl.api.DashboardsV2Api.DashboardsV2Delete(ctx, id) - _, err = cl.api.DashboardsV2Api.DashboardsV2DeleteExecute(req) + req := cl.api.DashboardsV2API.DashboardsV2Delete(ctx, id) + _, err = cl.api.DashboardsV2API.DashboardsV2DeleteExecute(req) if err != nil { err = fmt.Errorf("deleting dashboard: %w", errorDetail(err)) return err @@ -544,7 +544,7 @@ func (cl *Client) TemplateApply(ctx context.Context, id, thingId, prefix, device thingOption["device_id"] = deviceId thingOption["secrets"] = credentials - req := cl.api.TemplatesApi.TemplatesApply(ctx) + req := cl.api.TemplatesAPI.TemplatesApply(ctx) req = req.Template(iotclient.Template{ PrefixName: toStringPointer(prefix), CustomTemplateId: toStringPointer(id), @@ -552,7 +552,7 @@ func (cl *Client) TemplateApply(ctx context.Context, id, thingId, prefix, device thingId: thingOption, }, }) - dev, _, err := cl.api.TemplatesApi.TemplatesApplyExecute(req) + dev, _, err := cl.api.TemplatesAPI.TemplatesApplyExecute(req) if err != nil { err = fmt.Errorf("retrieving device, %w", errorDetail(err)) return nil, err @@ -572,7 +572,7 @@ func (cl *Client) setup(client, secret, organizationId string) error { } config.Servers = iotclient.ServerConfigurations{ { - URL: fmt.Sprintf("%s/iot", baseURL), + URL: baseURL, Description: "IoT API endpoint", }, } diff --git a/internal/iot/error.go b/internal/iot/error.go index e26de626..74f29120 100644 --- a/internal/iot/error.go +++ b/internal/iot/error.go @@ -21,7 +21,7 @@ import ( "encoding/json" "fmt" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) // errorDetail takes a generic iot-client-go error diff --git a/internal/iot/token.go b/internal/iot/token.go index 07f83bd7..bfa3df37 100644 --- a/internal/iot/token.go +++ b/internal/iot/token.go @@ -25,7 +25,7 @@ import ( "os" "strings" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "golang.org/x/oauth2" cc "golang.org/x/oauth2/clientcredentials" ) diff --git a/internal/template/dashboard.go b/internal/template/dashboard.go index eae04243..a8490c91 100644 --- a/internal/template/dashboard.go +++ b/internal/template/dashboard.go @@ -22,7 +22,7 @@ import ( "encoding/json" "fmt" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" ) type dashboardTemplate struct { diff --git a/internal/template/extract.go b/internal/template/extract.go index 1585c577..5418e0b4 100644 --- a/internal/template/extract.go +++ b/internal/template/extract.go @@ -23,7 +23,7 @@ import ( "fmt" "os" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "gopkg.in/yaml.v3" ) diff --git a/internal/template/load.go b/internal/template/load.go index 6086c25d..e07e76f1 100644 --- a/internal/template/load.go +++ b/internal/template/load.go @@ -25,7 +25,7 @@ import ( "io" "os" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/gofrs/uuid" "gopkg.in/yaml.v3" ) diff --git a/internal/template/load_test.go b/internal/template/load_test.go index 705dc0d1..88bdc931 100644 --- a/internal/template/load_test.go +++ b/internal/template/load_test.go @@ -21,7 +21,7 @@ import ( "context" "testing" - iotclient "github.com/arduino/iot-client-go/v2" + iotclient "github.com/arduino/iot-client-go/v3" "github.com/gofrs/uuid" "github.com/google/go-cmp/cmp" ) From 0958ad8ded700f026989d1860845d2190a52d4d2 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Wed, 6 Nov 2024 11:42:56 +0100 Subject: [PATCH 09/13] Fixed container version for release (#170) --- DistTasks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DistTasks.yml b/DistTasks.yml index 89144fbb..83fb63fe 100644 --- a/DistTasks.yml +++ b/DistTasks.yml @@ -20,7 +20,7 @@ version: "3" vars: CONTAINER: "docker.elastic.co/beats-dev/golang-crossbuild" - GO_VERSION: "1.23" + GO_VERSION: "1.23.2" CHECKSUM_FILE: "{{.VERSION}}-checksums.txt" tasks: From 2fe9244bcb595de3acbb30007b991846c432372e Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Wed, 6 Nov 2024 11:52:30 +0100 Subject: [PATCH 10/13] Fix compile image (#171) --- DistTasks.yml | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/DistTasks.yml b/DistTasks.yml index 83fb63fe..b7623381 100644 --- a/DistTasks.yml +++ b/DistTasks.yml @@ -170,35 +170,7 @@ tasks: PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_6" BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}" BUILD_PLATFORM: "linux/armv6" - # We are experiencing the following error with ARMv6 build: - # - # # github.com/arduino/arduino-cli - # net(.text): unexpected relocation type 296 (R_ARM_V4BX) - # panic: runtime error: invalid memory address or nil pointer dereference - # [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51ae53] - # - # goroutine 1 [running]: - # cmd/link/internal/loader.(*Loader).SymName(0xc000095c00, 0x0, 0xc0000958d8, 0x5a0ac) - # /usr/local/go/src/cmd/link/internal/loader/loader.go:684 +0x53 - # cmd/link/internal/ld.dynrelocsym2(0xc000095880, 0x5a0ac) - # /usr/local/go/src/cmd/link/internal/ld/data.go:777 +0x295 - # cmd/link/internal/ld.(*dodataState).dynreloc2(0xc007df9800, 0xc000095880) - # /usr/local/go/src/cmd/link/internal/ld/data.go:794 +0x89 - # cmd/link/internal/ld.(*Link).dodata2(0xc000095880, 0xc007d00000, 0x60518, 0x60518) - # /usr/local/go/src/cmd/link/internal/ld/data.go:1434 +0x4d4 - # cmd/link/internal/ld.Main(0x8729a0, 0x4, 0x8, 0x1, 0xd, 0xe, 0x0, 0x0, 0x6d7737, 0x12, ...) - # /usr/local/go/src/cmd/link/internal/ld/main.go:302 +0x123a - # main.main() - # /usr/local/go/src/cmd/link/main.go:68 +0x1dc - # Error: failed building for linux/armv6: exit status 2 - # - # This seems to be a problem in the go builder 1.16.x that removed support for the R_ARM_V4BX instruction: - # https://github.com/golang/go/pull/44998 - # https://groups.google.com/g/golang-codereviews/c/yzN80xxwu2E - # - # Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this - # build we select the debian10 based container. - CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian11" + CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian12" PACKAGE_PLATFORM: "Linux_ARMv6" PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz" @@ -255,6 +227,6 @@ tasks: # # To compile it we need an SDK >=10.12 so we use the debian10 based container that # has the SDK 10.14 installed. - CONTAINER_TAG: "{{.GO_VERSION}}-darwin-debian11" + CONTAINER_TAG: "{{.GO_VERSION}}-darwin" PACKAGE_PLATFORM: "macOS_64bit" PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz" From b1580abc89a922697dcd50613737489d2a6b701e Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Wed, 6 Nov 2024 14:35:55 +0100 Subject: [PATCH 11/13] Distribution fixes for MacOS (#172) --- .github/workflows/release-go-task.yml | 32 +++++++++++++++++---------- DistTasks.yml | 31 ++++++++++++++++++++++---- gon.config.hcl | 2 +- 3 files changed, 48 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index 57c1e886..05c92d3c 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -99,7 +99,7 @@ jobs: run: | gon gon.config.hcl - - name: Re-package binary and update checksum + - name: Re-package amd64 binary and update checksum # This step performs the following: # 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file) # 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file @@ -118,6 +118,25 @@ jobs: -e "s/.*${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz/${CHECKSUM} ${{ env.PROJECT_NAME }}_${TAG}_macOS_64bit.tar.gz/g;" \ ${{ env.DIST_DIR }}/*-checksums.txt + - name: Re-package ARM64 binary and update checksum + # This step performs the following: + # 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file) + # 2. Recalculate package checksum and replace it in the nnnnnn-checksums.txt file + run: | + # GitHub's upload/download-artifact@v4 actions don't preserve file permissions, + # so we need to add execution permission back until the action is made to do this. + chmod +x ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_darwin_arm64/${{ env.PROJECT_NAME }} + TAG="${GITHUB_REF/refs\/tags\//}" + tar -czvf "${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_${TAG}_macOS_ARM64.tar.gz" \ + -C ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_darwin_arm64/ ${{ env.PROJECT_NAME }} \ + -C ../../ LICENSE.txt + CHECKSUM="$(shasum -a 256 ${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_${TAG}_macOS_ARM64.tar.gz | cut -d " " -f 1)" + perl \ + -pi \ + -w \ + -e "s/.*${{ env.PROJECT_NAME }}_${TAG}_macOS_ARM64.tar.gz/${CHECKSUM} ${{ env.PROJECT_NAME }}_${TAG}_macOS_ARM64.tar.gz/g;" \ + ${{ env.DIST_DIR }}/*-checksums.txt + - name: Upload artifacts uses: actions/upload-artifact@v4 with: @@ -156,14 +175,3 @@ jobs: # NOTE: "Artifact is a directory" warnings are expected and don't indicate a problem # (all the files we need are in the DIST_DIR root) artifacts: ${{ env.DIST_DIR }}/* - - # TODO - # - name: Upload release files on Arduino downloads servers - # uses: docker://plugins/s3 - # env: - # PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*" - # PLUGIN_TARGET: ${{ env.AWS_PLUGIN_TARGET }} - # PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/" - # PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }} - # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/DistTasks.yml b/DistTasks.yml index b7623381..eccd14ab 100644 --- a/DistTasks.yml +++ b/DistTasks.yml @@ -35,6 +35,7 @@ tasks: - task: Linux_ARMv7 - task: Linux_ARM64 - task: macOS_64bit + - task: macOS_ARM64 Windows_32bit: desc: Builds Windows 32 bit binaries @@ -168,7 +169,7 @@ tasks: vars: PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_6" - BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}" + BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}} -buildvcs=false" BUILD_PLATFORM: "linux/armv6" CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian12" PACKAGE_PLATFORM: "Linux_ARMv6" @@ -197,7 +198,7 @@ tasks: PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz" macOS_64bit: - desc: Builds Mac OS X 64 bit binaries + desc: Builds Mac OS X x86_64 bit binaries dir: "{{.DIST_DIR}}" cmds: - | @@ -212,7 +213,7 @@ tasks: vars: PLATFORM_DIR: "{{.PROJECT_NAME}}_osx_darwin_amd64" - BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}" + BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}} -buildvcs=false" BUILD_PLATFORM: "darwin/amd64" # We are experiencing the following error with macOS_64bit build: # @@ -227,6 +228,28 @@ tasks: # # To compile it we need an SDK >=10.12 so we use the debian10 based container that # has the SDK 10.14 installed. - CONTAINER_TAG: "{{.GO_VERSION}}-darwin" + CONTAINER_TAG: "{{.GO_VERSION}}-darwin-debian10" PACKAGE_PLATFORM: "macOS_64bit" PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz" + + macOS_ARM64: + desc: Builds Mac OS X ARM64 binaries + dir: "{{.DIST_DIR}}" + cmds: + - | + docker run -v `pwd`/..:/home/build -w /home/build \ + -e CGO_ENABLED=1 \ + {{.CONTAINER}}:{{.CONTAINER_TAG}} \ + --build-cmd "{{.BUILD_COMMAND}}" \ + -p "{{.BUILD_PLATFORM}}" + + tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} + + vars: + PLATFORM_DIR: "{{.PROJECT_NAME}}_osx_darwin_arm64" + BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}} -buildvcs=false" + BUILD_PLATFORM: "darwin/arm64" + CONTAINER_TAG: "{{.GO_VERSION}}-darwin-arm64-debian10" + PACKAGE_PLATFORM: "macOS_ARM64" + PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz" diff --git a/gon.config.hcl b/gon.config.hcl index f32ba1ed..4a4eefdf 100644 --- a/gon.config.hcl +++ b/gon.config.hcl @@ -1,6 +1,6 @@ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/general/gon.config.hcl # See: https://github.com/Bearer/gon#configuration-file -source = ["dist/arduino-cloud-cli_osx_darwin_amd64/arduino-cloud-cli"] +source = ["dist/arduino-cloud-cli_osx_darwin_amd64/arduino-cloud-cli", "dist/arduino-cloud-cli_osx_darwin_arm64/arduino-cloud-cli"] bundle_id = "cc.arduino.arduino-cloud-cli" sign { From fb9f4030f6b283273ef38720685138d36f6ba8f7 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Tue, 28 Jan 2025 09:33:27 +0100 Subject: [PATCH 12/13] Updating CA to V2 (#173) --- internal/iot/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/iot/client.go b/internal/iot/client.go index e4882d6f..36d71e5c 100644 --- a/internal/iot/client.go +++ b/internal/iot/client.go @@ -299,7 +299,7 @@ func (cl *Client) CertificateCreate(ctx context.Context, id, csr string) (*iotcl } cert := iotclient.CreateDevicesV2CertsPayload{ - Ca: toStringPointer("Arduino"), + Ca: toStringPointer("Arduino_v2"), Csr: csr, Enabled: true, } From 88de6186d7e307ead1ff5680dfdc356eb864c3cb Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 3 Feb 2025 09:09:59 +0100 Subject: [PATCH 13/13] [WIRE-717] Fix unknown fields serialization issue (#174) --- .../arduino/iot-client-go/v3.dep.yml | 2 +- .licenses/go/golang.org/x/oauth2.dep.yml | 2 +- .../x/oauth2/clientcredentials.dep.yml | 4 +- .../go/golang.org/x/oauth2/internal.dep.yml | 4 +- command/device/show.go | 7 +++- go.mod | 4 +- go.sum | 8 ++-- internal/iot/client_test.go | 41 +++++++++++++++++++ internal/template/load_test.go | 17 +++++--- 9 files changed, 70 insertions(+), 19 deletions(-) create mode 100644 internal/iot/client_test.go diff --git a/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml b/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml index 070abedd..76c2942d 100644 --- a/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml +++ b/.licenses/go/github.com/arduino/iot-client-go/v3.dep.yml @@ -1,6 +1,6 @@ --- name: github.com/arduino/iot-client-go/v3 -version: v3.0.1 +version: v3.1.1 type: go summary: homepage: https://pkg.go.dev/github.com/arduino/iot-client-go/v3 diff --git a/.licenses/go/golang.org/x/oauth2.dep.yml b/.licenses/go/golang.org/x/oauth2.dep.yml index fec14f35..704a67c4 100644 --- a/.licenses/go/golang.org/x/oauth2.dep.yml +++ b/.licenses/go/golang.org/x/oauth2.dep.yml @@ -1,6 +1,6 @@ --- name: golang.org/x/oauth2 -version: v0.23.0 +version: v0.25.0 type: go summary: Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests, as specified in RFC 6749. diff --git a/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml b/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml index 8421ec51..8ecbb7d7 100644 --- a/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml +++ b/.licenses/go/golang.org/x/oauth2/clientcredentials.dep.yml @@ -1,13 +1,13 @@ --- name: golang.org/x/oauth2/clientcredentials -version: v0.23.0 +version: v0.25.0 type: go summary: Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0". homepage: https://pkg.go.dev/golang.org/x/oauth2/clientcredentials license: bsd-3-clause licenses: -- sources: oauth2@v0.23.0/LICENSE +- sources: oauth2@v0.25.0/LICENSE text: | Copyright 2009 The Go Authors. diff --git a/.licenses/go/golang.org/x/oauth2/internal.dep.yml b/.licenses/go/golang.org/x/oauth2/internal.dep.yml index 7267f93c..183fc7e3 100644 --- a/.licenses/go/golang.org/x/oauth2/internal.dep.yml +++ b/.licenses/go/golang.org/x/oauth2/internal.dep.yml @@ -1,12 +1,12 @@ --- name: golang.org/x/oauth2/internal -version: v0.23.0 +version: v0.25.0 type: go summary: Package internal contains support packages for oauth2 package. homepage: https://pkg.go.dev/golang.org/x/oauth2/internal license: bsd-3-clause licenses: -- sources: oauth2@v0.23.0/LICENSE +- sources: oauth2@v0.25.0/LICENSE text: | Copyright 2009 The Go Authors. diff --git a/command/device/show.go b/command/device/show.go index 18d53c77..38fa01d1 100644 --- a/command/device/show.go +++ b/command/device/show.go @@ -58,7 +58,12 @@ func Show(ctx context.Context, deviceId string, cred *config.Credentials) (*Devi return nil, net, err } for _, netCred := range netCredentialsArray { - net = append(net, netCredentials(netCred)) + var netCredToShow netCredentials + netCredToShow.FriendlyName = netCred.FriendlyName + netCredToShow.Required = netCred.Required + netCredToShow.SecretName = netCred.SecretName + netCredToShow.Sensitive = netCred.Sensitive + net = append(net, netCredToShow) } } diff --git a/go.mod b/go.mod index 9b6fd915..e57b7f98 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71 github.com/arduino/go-paths-helper v1.12.1 github.com/arduino/go-win32-utils v1.0.0 - github.com/arduino/iot-client-go/v3 v3.0.1 + github.com/arduino/iot-client-go/v3 v3.1.1 github.com/gofrs/uuid v4.2.0+incompatible github.com/google/go-cmp v0.6.0 github.com/howeyc/crc16 v0.0.0-20171223171357-2b2a61e366a6 @@ -19,7 +19,7 @@ require ( go.bug.st/cleanup v1.0.0 go.bug.st/serial v1.6.2 golang.org/x/crypto v0.18.0 - golang.org/x/oauth2 v0.23.0 + golang.org/x/oauth2 v0.25.0 google.golang.org/grpc v1.61.0 gopkg.in/yaml.v3 v3.0.1 gotest.tools v2.2.0+incompatible diff --git a/go.sum b/go.sum index 8f7e0be0..0601b9a9 100644 --- a/go.sum +++ b/go.sum @@ -71,8 +71,8 @@ github.com/arduino/go-properties-orderedmap v1.7.1 h1:HQ9Pn/mk3+XyfrE39EEvaZwJkr github.com/arduino/go-properties-orderedmap v1.7.1/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk= github.com/arduino/go-win32-utils v1.0.0 h1:/cXB86sOJxOsCHP7sQmXGLkdValwJt56mIwOHYxgQjQ= github.com/arduino/go-win32-utils v1.0.0/go.mod h1:0jqM7doGEAs6DaJCxxhLBUDS5OawrqF48HqXkcEie/Q= -github.com/arduino/iot-client-go/v3 v3.0.1 h1:AwkctEtP7ilVXBOF2yZPJZpjpuUmKNGr/OdYxPx/4QQ= -github.com/arduino/iot-client-go/v3 v3.0.1/go.mod h1:r2QEAP5Jalkr0YWNPhFl0EJzFRQNy24wN5CVbn11f64= +github.com/arduino/iot-client-go/v3 v3.1.1 h1:bQhbV5PlH8tDuSmeimw9Rjrh5KbIUhqvYWWI/xYMi1M= +github.com/arduino/iot-client-go/v3 v3.1.1/go.mod h1:r2QEAP5Jalkr0YWNPhFl0EJzFRQNy24wN5CVbn11f64= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= @@ -582,8 +582,8 @@ golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= -golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= +golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/internal/iot/client_test.go b/internal/iot/client_test.go new file mode 100644 index 00000000..4c13608c --- /dev/null +++ b/internal/iot/client_test.go @@ -0,0 +1,41 @@ +package iot + +import ( + "testing" + + iotclient "github.com/arduino/iot-client-go/v3" + "github.com/stretchr/testify/assert" +) + +func TestJSON_UnknownFields_areAccepted(t *testing.T) { + + cert := iotclient.ArduinoDevicev2Cert{} + + // Add unknown fields to the JSON and verify that marshalling and unmarshalling works without raising error. + // This is useful when the API is extended with new fields and the client is not updated yet. + certJson := `{ + "compressed": { + "not_after": "0001-01-01T00:00:00Z", + "not_before": "0001-01-01T00:00:00Z", + "serial": "", + "signature": "signature", + "signature_asn1_x": "", + "signature_asn1_y": "" + }, + "der": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA", + "device_id": "123", + "enabled": true, + "href": "", + "id": "", + "pem": "-----BEGIN CERTIFICATE-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA", + "unknown_field": "value", + "unknown_field2": "value2", + "new_api_field": 2222 + }` + + err := cert.UnmarshalJSON([]byte(certJson)) + if err != nil { + t.Errorf("UnmarshalJSON failed: %s", err) + } + assert.Equal(t, 3, len(cert.AdditionalProperties)) +} diff --git a/internal/template/load_test.go b/internal/template/load_test.go index 88bdc931..53d275ec 100644 --- a/internal/template/load_test.go +++ b/internal/template/load_test.go @@ -68,9 +68,10 @@ var ( Widgets: []iotclient.Widget{ {Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4), X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true}, - Type: "Switch", + Type: "Switch", AdditionalProperties: map[string]any{}, }, }, + AdditionalProperties: map[string]any{}, } dashboardNoOptions = &iotclient.Dashboardv2{ @@ -78,9 +79,10 @@ var ( Widgets: []iotclient.Widget{ {Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4), X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{}, - Type: "Switch", + Type: "Switch", AdditionalProperties: map[string]any{}, }, }, + AdditionalProperties: map[string]any{}, } dashboardWithVariable = &iotclient.Dashboardv2{ @@ -88,9 +90,10 @@ var ( Widgets: []iotclient.Widget{ {Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4), X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true}, Type: "Switch", - Variables: []string{switchyID}, + Variables: []string{switchyID}, AdditionalProperties: map[string]any{}, }, }, + AdditionalProperties: map[string]any{}, } dashboardVariableOverride = &iotclient.Dashboardv2{ @@ -98,9 +101,10 @@ var ( Widgets: []iotclient.Widget{ {Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4), X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true}, Type: "Switch", - Variables: []string{switchyOverriddenID}, + Variables: []string{switchyOverriddenID}, AdditionalProperties: map[string]any{}, }, }, + AdditionalProperties: map[string]any{}, } dashboardTwoWidgets = &iotclient.Dashboardv2{ @@ -108,13 +112,14 @@ var ( Widgets: []iotclient.Widget{ {Name: toStringPointer("blink_speed"), Height: 7, Width: 8, X: 7, Y: 5, Options: map[string]interface{}{"min": float64(0), "max": float64(5000)}, Type: "Slider", - Variables: []string{blinkSpeedID}, + Variables: []string{blinkSpeedID}, AdditionalProperties: map[string]any{}, }, {Name: toStringPointer("relay_2"), Height: 5, Width: 5, X: 5, Y: 0, Options: map[string]interface{}{"showLabels": true}, Type: "Switch", - Variables: []string{relayID}, + Variables: []string{relayID}, AdditionalProperties: map[string]any{}, }, }, + AdditionalProperties: map[string]any{}, } )