Skip to content

Use public repository metadata URL - #21

Open
Soengkit wants to merge 1 commit into
gevorg:masterfrom
Soengkit:codex/use-public-repository-metadata
Open

Use public repository metadata URL#21
Soengkit wants to merge 1 commit into
gevorg:masterfrom
Soengkit:codex/use-public-repository-metadata

Conversation

@Soengkit

Copy link
Copy Markdown

Summary

  • update the package repository metadata to use the public git+https:// GitHub URL
  • leave runtime code, dependencies, version, and package entrypoints unchanged

Why

The published npm metadata for apache-md5@1.1.8 currently resolves to an SSH GitHub URL:

git+ssh://git@github.com/gevorg/apache-md5.git

The default-branch package.json also points at the repository through legacy HTTP metadata. Public package metadata should be usable by consumers and tooling without GitHub SSH credentials, so this changes the source manifest to:

git+https://github.com/gevorg/apache-md5.git

Validation

node -e "const p=require('./package.json'); if (p.repository.url !== 'git+https://github.com/gevorg/apache-md5.git') { console.error(p.repository); process.exit(1) } console.log(JSON.stringify({name:p.name, version:p.version, repository:p.repository, license:p.license}, null, 2))"
node -e "JSON.parse(require('fs').readFileSync('package.json','utf8')); console.log('package.json parses')"
git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant