-
Notifications
You must be signed in to change notification settings - Fork 17
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
Store size of package in the index #35
Comments
What is the size of a package? Many things come to mind: Number of modules, procedures, source files, dependencies? Number of lines of code? Number of bytes on disk of source files? Number of bytes of the binaries? What is it useful for? |
Thanks for opening @aslozada but I think there may be some misunderstanding about the role of the
|
I think the information about the package size is useful in this scenario: a package contains many dependencies or a huge dependency (several GB of data) and we're in limited internet connection. I think fpm could display a message like this one: "I will download N GB of data. Do you want to continue?". This information could be stored in fpm-registry. |
Yes I agree, this type of information would be well-suited to the fpm-registry which is setup extract and cache such data. |
Thanks, @LKedward. The proposal is related to the scenario described by @brocolis. I thought that the file |
Thanks @aslozada and @brocolis, the scenario makes sense for a central registry; providing more information about packages and their dependencies prior to downloading them is one of the motivations for developing a central fpm-registry. I'll move this issue to fpm-registry so that it can be tracked there. |
Indeed, the fpm-registry should automatically extract this information and make it available. |
Should the
fpm.toml
file contain information about the size of the package?The subroutines
new_package
andcheck
, in the modulefpm_manifest_package
, contain 18 keywords with information about a package,name
,author
,version
, etc. However, no keyword provides information about the size of the package.An idea,
fpm.toml
with information about the size of the packageThe command
execute_command_line
can get this information from shell.The text was updated successfully, but these errors were encountered: