Skip to content

Commit

Permalink
Update dependencies, Go and Ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Sep 19, 2022
1 parent 7c18864 commit 2044ee4
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 429 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
lint:
strategy:
matrix:
platform: [ubuntu-20.04]
go-version: [1.17.x, 1.18.x]
platform: [ubuntu-22.04]
go-version: [1.18.x, 1.19.x]
runs-on: ${{ matrix.platform }}
name: Linters (Static Analysis) for Go
steps:
Expand All @@ -31,8 +31,8 @@ jobs:
test:
strategy:
matrix:
platform: [ubuntu-20.04]
go-version: [1.17.x, 1.18.x]
platform: [ubuntu-22.04]
go-version: [1.18.x, 1.19.x]
runs-on: ${{ matrix.platform }}
name: integration tests
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
test:
strategy:
matrix:
platform: [ubuntu-20.04]
go-version: [1.18.x]
platform: [ubuntu-22.04]
go-version: [1.19.x]
runs-on: ${{ matrix.platform }}
name: integration tests
env:
Expand Down
4 changes: 2 additions & 2 deletions cmd/youtubedr/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"io/ioutil"
"io"
"log"
"os"

Expand Down Expand Up @@ -33,7 +33,7 @@ func init() {
cobra.OnInitialize(initConfig)
cobra.OnInitialize(func() {
if !verbose {
log.SetOutput(ioutil.Discard)
log.SetOutput(io.Discard)
}
})

Expand Down
5 changes: 2 additions & 3 deletions downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -71,14 +70,14 @@ func (dl *Downloader) DownloadComposite(ctx context.Context, outputFile string,
outputDir := filepath.Dir(destFile)

// Create temporary video file
videoFile, err := ioutil.TempFile(outputDir, "youtube_*.m4v")
videoFile, err := os.CreateTemp(outputDir, "youtube_*.m4v")
if err != nil {
return err
}
defer os.Remove(videoFile.Name())

// Create temporary audio file
audioFile, err := ioutil.TempFile(outputDir, "youtube_*.m4a")
audioFile, err := os.CreateTemp(outputDir, "youtube_*.m4a")
if err != nil {
return err
}
Expand Down
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module github.com/kkdai/youtube/v2

go 1.17
go 1.18

require (
github.com/bitly/go-simplejson v0.5.0
github.com/dop251/goja v0.0.0-20220719153422-38a3647bcce0
github.com/dop251/goja v0.0.0-20220915101355-d79e1b125a30
github.com/mitchellh/go-homedir v1.1.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.12.0
github.com/spf13/viper v1.13.0
github.com/stretchr/testify v1.8.0
github.com/vbauerster/mpb/v5 v5.4.0
golang.org/x/net v0.0.0-20220708220712-1185a9018129
golang.org/x/net v0.0.0-20220919171627-f8f703f97925
)

require (
Expand All @@ -24,22 +24,22 @@ require (
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rogpeppe/go-internal v1.8.1 // indirect
github.com/rivo/uniseg v0.4.2 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 2044ee4

Please sign in to comment.