concourse / concourse

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
3 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.
  4	"encoding/json"
  5	"errors"
  6	"fmt"
  7	"io/ioutil"  8	"os"
  9	"os/user"
 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.
  5
  6import (
  7	"fmt"
  8	"io/ioutil"  9	"net"
 10	"os"
 11	"os/exec"
limits.CPU.LimitInShares is deprecated: Use Weight instead.
142		memoryResources *specs.LinuxMemory
143		pidLimit        *specs.LinuxPids
144	)
145	shares := limits.CPU.LimitInShares146	if limits.CPU.Weight > 0 {
147		shares = limits.CPU.Weight
148	}