Skip to content

Remove library headers from non-main files - #179

Merged
matthewbauer merged 3 commits into
NixOS:masterfrom
akirak:remove-library-headers
Jan 19, 2023
Merged

Remove library headers from non-main files#179
matthewbauer merged 3 commits into
NixOS:masterfrom
akirak:remove-library-headers

Conversation

@akirak

@akirak akirak commented Jan 16, 2023

Copy link
Copy Markdown
Member

Having Package-Requires header in non-main files can mislead contributors. MELPA reads the header only from the "main file" of the package, so if a contributor adds a new dependency to the header in a wrong file, it causes a missing dependency (as in #177).

Unless this repository is distributed as multiple packages, only nix-mode.el is supposed to contain the header. This PR removes the dependency header from source files other than the main file.

@etu
etu requested a review from matthewbauer January 17, 2023 20:45
@akirak

akirak commented Jan 17, 2023

Copy link
Copy Markdown
Member Author

nix-company.el and nix-mode-mmm.el seem to be separate packages: https://github.com/melpa/melpa/blob/master/recipes/nix-mode

I am on mobile now, so I'll fix this later.

@akirak

akirak commented Jan 18, 2023

Copy link
Copy Markdown
Member Author

nix-company.el and nix-mode-mmm.el seem to be separate packages

I think it's ready to be merged.

@matthewbauer
matthewbauer merged commit 9fc7749 into NixOS:master Jan 19, 2023
@akirak
akirak deleted the remove-library-headers branch January 19, 2023 16:54
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.

3 participants