Skip to content

Citizen module publish does not apply owner switches but will apply ENV CITIZEN_MODULE_OWNER in mysql #118

@abourget-cainc

Description

@abourget-cainc

Ran the following:

citizen module -r https://registry.address.com -o me testmod testmod aws 0.0.1
citizen module -r https://registry.address.com --owner me testmod testmod aws 0.0.1

Neither populated the owner column in the mysql database.

Ran without the switches but with the env variable CITIZEN_MODULE_OWNER set, and the owner column was populated in the mysql database.

Suspect this line zeros out the owner if the env variable isn't set:

const owner = process.env.CITIZEN_MODULE_OWNER || '';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions