Skip to content

Convert a submodule-using cabal.project file to one that uses source-repository-packages

Notifications You must be signed in to change notification settings

RyanGlScott/submods-to-source-repos

Repository files navigation

submods-to-source-repos

Haskell Programming Language BSD3 License Build Status

Convert a submodule-using cabal.project file to one that uses source-repository-packages.

Instructions

  1. First, clone the repository with submodules that you are interested in:

    $ git clone <repo> && cd <repo-dir> && git submodule update --init --depth 1
    

    The git submodule update --init --depth 1 part is necessary because submods-to-source-repos must look into the contents of each submodule to determine where each submodule's .cabal files are located. However, this does not require the full git history of each submodule, so you can save some time by cloning each submodule shallowly with --depth 1.

  2. Invoke submods-to-source-repos on the main cabal.project file:

    $ submods-to-source-repos cabal.project
    

    If you want to save this as a new cabal.project file, you can redirect the output like so:

    $ submods-to-source-repos cabal.project > cabal.project.new
    

About

Convert a submodule-using cabal.project file to one that uses source-repository-packages

Resources

Stars

Watchers

Forks

Packages

No packages published