Skip to content

Commit

Permalink
Bumping version to 1.19.0 (#48)
Browse files Browse the repository at this point in the history
* Bumping version to 1.19.0
  • Loading branch information
glecaros authored Nov 8, 2021
1 parent ef57ed7 commit 3c19a6c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
CARBON_VERSION: "1.18.0"
CARBON_VERSION: "1.19.0"

jobs:
linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
pull_request:
env:
CARBON_VERSION: "1.18.0"
CARBON_VERSION: "1.19.0"
jobs:
golangci:
name: lint
Expand Down
9 changes: 0 additions & 9 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,3 @@ issues:
- linters:
- golint
text: "type name will be used"

# Show only new issues: if there are unstaged changes or untracked files,
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
# It's a super-useful option for integration of golangci-lint into existing
# large codebase. It's not practical to fix all existing issues at the moment
# of integration: much better don't allow issues in new code.
new: true

exclude-use-default: false
2 changes: 1 addition & 1 deletion audio/audio_stream_container_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package audio

// AudioStreamContainerFormat defines supported audio stream container format.
type AudioStreamContainerFormat int
type AudioStreamContainerFormat int //nolint:revive

const (
// OGGOPUS Stream ContainerFormat definition for OGG OPUS.
Expand Down
7 changes: 4 additions & 3 deletions audio/interop_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
package audio

import (
"unsafe"

"github.com/Microsoft/cognitive-services-speech-sdk-go/common"
)

// #include <speechapi_c_common.h>
import "C"
import "unsafe"

func uintptr2handle(h common.SPXHandle) C.SPXHANDLE {
return (C.SPXHANDLE)(unsafe.Pointer(h))
return (C.SPXHANDLE)(unsafe.Pointer(h)) //nolint:govet
}

func handle2uintptr(h C.SPXHANDLE) common.SPXHandle {
return (common.SPXHandle)(unsafe.Pointer(h))
return (common.SPXHandle)(unsafe.Pointer(h)) //nolint:govet
}
4 changes: 0 additions & 4 deletions common/interop_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ type SPXHandle uintptr
func uintptr2handle(h SPXHandle) C.SPXHANDLE {
return (C.SPXHANDLE)(unsafe.Pointer(h)) //nolint:govet
}

func handle2uintptr(h C.SPXHANDLE) SPXHandle {
return (SPXHandle)(unsafe.Pointer(h))
}
20 changes: 0 additions & 20 deletions common/interop_utils_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion dialog/interop_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func uintptr2handle(h common.SPXHandle) C.SPXHANDLE {
}

func handle2uintptr(h C.SPXHANDLE) common.SPXHandle {
return (common.SPXHandle)(unsafe.Pointer(h))
return (common.SPXHandle)(unsafe.Pointer(h)) //nolint:govet
}
2 changes: 1 addition & 1 deletion samples/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Microsoft/cognitive-services-speech-sdk-go/samples

require github.com/Microsoft/cognitive-services-speech-sdk-go v1.18.0
require github.com/Microsoft/cognitive-services-speech-sdk-go v1.19.0

go 1.13
2 changes: 1 addition & 1 deletion speech/interop_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func uintptr2handle(h common.SPXHandle) C.SPXHANDLE {
}

func handle2uintptr(h C.SPXHANDLE) common.SPXHandle {
return (common.SPXHandle)(unsafe.Pointer(h))
return (common.SPXHandle)(unsafe.Pointer(h)) //nolint:govet
}

0 comments on commit 3c19a6c

Please sign in to comment.