crystal-lang / shards

Dependency manager for the Crystal language
Other
765 stars 102 forks source link

Rename/refine/split --production option #452

Open straight-shoota opened 3 years ago

straight-shoota commented 3 years ago

The --production option is not very appropriately named because it's easy to assume it means running shards (especially shards build in "production mode"). Instead, its behaviour is only related to dependency resolution (and even that is not strongly tied to production environments). It has two effects which should be available as separate options. For example, in a CI environment you may want to install only from lockfile but also install development dependencies.

The latter could stay as --production, but I'd rather have a better fitting name. --deployment is used by bundler, too. This should also fail if shard.lock is missing (also like bundler).

Related to #372