private static String getOrComputeSha(Path path) {
        File artifactFile = path.toFile();
        File checksumFile = new File(artifactFile.getParent(), artifactFile.getName() + CHECKSUM_FILE_EXTENSION);
        try {
            if (checksumFile.exists()) {
                return ChecksumUtils.read(checksumFile);
            } else {
                return DependencyUtils.computeSha1(path);
            }
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
An artifact resolved from a repository that provides the path on disk where the artifact
was downloaded, and the coordinates of the artifact.
smithy-cli/src/main/java/software/amazon/smithy/cli/dependencies/ResolvedArtifact.java