Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package manager #52

Open
dghosef opened this issue Sep 7, 2023 · 0 comments
Open

Package manager #52

dghosef opened this issue Sep 7, 2023 · 0 comments

Comments

@dghosef
Copy link
Owner

dghosef commented Sep 7, 2023

  • require semantic versioning and packages to be on GitHub
  • have a central pkg file for installed file with list of packages and version numbers
  • each package also has a package file with list of packages and version numbers. This one takes precedence over the global one
  • importing will have the following precedence:
    • lookup directory paths
    • traverse backwards the directory hierarchy until we find a package file and lookup in that package file

This means that the standard library must be in that package file

You can just include by repo name if you want. If two repos have the same name you can also lookup by username/repo

Where the packages are actually installed is an implementation detail but prolly for example the stdlist 1.0.0 package would be in

~/.qdbp/pkg/stdlist/1.0.0

In the package manifest you can specify any number of significant digits of the semantic version number and each time you update itll pick the most relevant one

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

No branches or pull requests

1 participant