github.com/Kasita-Inc/glide@v0.13.2-0.20171213220317-0274b9278c36/docs/faq.md (about)

     1  # Frequently Asked Questions (F.A.Q.)
     2  
     3  ## Q: Why does Glide have the concept of sub-packages when Go doesn't?
     4  
     5  In Go every directory is a package. This works well when you have one repo containing all of your packages. When you have different packages in different VCS locations things become a bit more complicated. A project containing a collection of packages should be handled with the same information including the version. By grouping packages this way we are able to manage the related information.
     6  
     7  ## Q: bzr (or hg) is not working the way I expected. Why?
     8  
     9  These are works in progress, and may need some additional tuning. Please take a look at the [vcs package](https://github.com/masterminds/vcs). If you see a better way to handle it please let us know.
    10  
    11  ## Q: Should I check `vendor/` into version control?
    12  
    13  That's up to you. It's a personal or organizational decision. Glide will help you install the outside dependencies on demand or help you manage the dependencies as they are checked into your version control system.
    14  
    15  By default, commands such as `glide update` and `glide install` install on-demand. To manage a vendor folder that's checked into version control use the flags:
    16  
    17  * `--update-vendored` (aliased to `-u`) to update the vendored dependencies.
    18  * `--strip-vcs` (aliased to `-s`) to strip VCS metadata (e.g., `.git` directories) from the `vendor` folder.
    19  * `--strip-vendor` (aliased to `-v`) to strip nested `vendor/` directories.
    20  
    21  ## Q: How do I import settings from GPM, Godep, Gom, or GB?
    22  
    23  There are two parts to importing.
    24  
    25  1. If a package you import has configuration for GPM, Godep, Gom, or GB Glide will recursively install the dependencies automatically.
    26  2. If you would like to import configuration from GPM, Godep, Gom, or GB to Glide see the `glide import` command. For example, you can run `glide import godep` for Glide to detect the projects Godep configuration and generate a `glide.yaml` file for you.
    27  
    28  Each of these will merge your existing `glide.yaml` file with the
    29  dependencies it finds for those managers, and then emit the file as
    30  output. **It will not overwrite your glide.yaml file.**
    31  
    32  You can write it to file like this:
    33  
    34      $ glide import godep -f glide.yaml
    35  
    36  
    37  ## Q: Can Glide fetch a package based on OS or Arch?
    38  
    39  Yes. Using the `os` and `arch` fields on a `package`, you can specify
    40  which OSes and architectures the package should be fetched for. For
    41  example, the following package will only be fetched for 64-bit
    42  Darwin/OSX systems:
    43  
    44      - package: some/package
    45        os:
    46          - darwin
    47        arch:
    48          - amd64
    49  
    50  The package will not be fetched for other architectures or OSes.
    51  
    52  ## Q: How did Glide get its name?
    53  
    54  Aside from being catchy, "glide" is a contraction of "Go Elide". The
    55  idea is to compress the tasks that normally take us lots of time into a
    56  just a few seconds.