concourse / concourse

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
8 occurrences in this check
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  1package zipfs_test
  2
  3import (
  4	"io/ioutil"  5	"os"
  6	"os/exec"
  7	"path/filepath"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
 3import (
 4	"archive/zip"
 5	"io"
 6	"io/ioutil" 7	"os"
 8	"os/exec"
 9	"path/filepath"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  2
  3import (
  4	"io"
  5	"io/ioutil"  6	"os"
  7	"os/exec"
  8	"path/filepath"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  4	"archive/tar"
  5	"bytes"
  6	"compress/gzip"
  7	"io/ioutil"  8	"os"
  9	"os/exec"
 10	"path/filepath"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  2
  3import (
  4	"io"
  5	"io/ioutil"  6	"os"
  7	"os/exec"
  8	"path/filepath"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  3import (
  4	"archive/tar"
  5	"bytes"
  6	"io/ioutil"  7	"os"
  8	"os/exec"
  9	"path/filepath"
header.SetModTime has been deprecated since Go 1.10: Use [Modified] instead.
143		}
144
145		if !file.ModTime.IsZero() {
146			header.SetModTime(file.ModTime)147		}
148
149		f, err := w.CreateHeader(header)
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details.
  6	"bytes"
  7	"compress/gzip"
  8	"io"
  9	"io/ioutil" 10	"os"
 11	"time"
 12)