Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.45 KB

using-unpublished-elm-dependencies.md

File metadata and controls

23 lines (12 loc) · 1.45 KB

ADR 1: Using unpublished Elm dependencies

Status

Accepted.

Context

The Elm Public Library is a catalog of all published packages which can be used as dependencies in elm.json.

However, the published versions of packages might be unmaintained, have pending fixes, or require customisation in order to be used effectively. If this is the case, it is not straightforward how to proceed using unpublished packages & this can block progress.

Decision

Use elm-git-install to install an unpublished fork of the affected package.

Read more about the options discussed in this decision & view the originating MR for additional context.

Consequences

The elm-git-install tool introduces an extra script step for fetching dependencies listed in elm-git.json. The cached package is then automatically added to elm.json under source-directories.

Dependencies added in this way ought to be periodically revisited to check their status: using published packages is preferred. If a package is updated to fix breaking issues, the published version can be used again. Conversely, substantial customisation of a package might make a case for publishing a new one to the Elm package registry.