• Adam Simpkins's avatar
    fbcode_builder: implement automatic project detection from the current repo · 571f3268
    Adam Simpkins authored
    Summary:
    This updates fbcode_builder to try and automatically detect the current
    repository's project name by looking for a `.projectid` file in the repository
    root.  If the project name can be detected:
    - The current repository will automatically be used as the source directory
      for this project (instead of fetching the sources into the scratch
      directory).
    - If an explicit project name was not specified on the command line, the
      current project will be built by default.
    
    This also changes the repository detection logic to use the current working
    directory, rather than the directory where the fbcode_builder code lives.
    This will allow this logic to work even if we move fbcode_builder into its own
    repository in the future, and have projects depend on it using git submodules.
    This does mean that callers need to invoke fbcode_builder.py from inside the
    repository.
    
    Reviewed By: wez
    
    Differential Revision: D17088938
    
    fbshipit-source-id: f14d28fdcfaa330ff837ea52b8bdd4e358b81c61
    571f3268
getdeps.py 26.9 KB