Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-888

Remove some dummy files which were used to keep related "empty" directories.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.0-incubating
    • Component/s: Build
    • Labels:
      None

      Description

      After building with pgcrypto, plr, orca, the git repos will have the following tracked files.

      Changes not staged for commit:
      (use "git add/rm <file>..." to update what will be committed)
      (use "git checkout – <file>..." to discard changes in working directory)

      deleted: gp-xerces/git_keep_empty_directory.readme
      deleted: gporca/git_keep_empty_directory.readme
      deleted: gpos/git_keep_empty_directory.readme
      deleted: postgres/git_keep_empty_directory.readme
      deleted: ../../src/pl/plr/git_keep_empty_directory.readme

      Those files are just to remind developers to not write the directory (git does not save empty directories). This is really annoying. .gitignore does not resolve this issue.

      A simple and elegant solution is:
      git update-index --assume-unchanged
      however followering error is seen after parallel building,
      fatal: Unable to create '/data2/github/incubator-hawq/.git/index.lock': File exists.
      If no other git process is currently running, this probably means a
      git process crashed in this repository earlier. Make sure no other git
      process is running and remove the file manually to continue.

      I do not want to waste too much time in digging into git internals, instead,
      I'd try another simple solution:

      • rm -f git_keep_empty_directory.readme; \
        + mv -f gporca.git_keep_empty_directory.readme ..; \
        [ ! -d .git ] && git clone $(gporca_git) . && git checkout $(gporca_branch); \
        + mv -f ../gporca.git_keep_empty_directory.readme .; \

        Attachments

          Activity

            People

            • Assignee:
              Paul Guo Paul Guo
              Reporter:
              Paul Guo Paul Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: