Skip to content

in-tree build generated files need to be added to .gitignore #1387

Closed

Description

@hanjianqiao

Bug Report

IvorySQL Version

master

OS Version (uname -a)

Configuration options

./configure \
    --prefix=/tmp/ivorysql \
    --enable-cassert \
    --enable-rpath \
    --enable-injection-points \
    --with-libedit-preferred \
    --with-libxml \
    --with-uuid=e2fs \
    --with-icu \
    --with-ssl=openssl \
    CFLAGS="-std=gnu11"

Current Behavior

run make then git status:

make
git status

then there're generated files listed as Untracked files:

➜  IvorySQL git:(master) ✗ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        contrib/ivorysql_ora/ivorysql_ora--1.0.sql
        src/bin/psql/ora_psqlscanslash.c
        src/bin/psql/psqlplusparse.c
        src/bin/psql/psqlplusparse.h
        src/bin/psql/psqlplusscan.c
        src/fe_utils/ora_keywords.c
        src/fe_utils/ora_kwlist_d.h
        src/include/catalog/postgres_oracle.bki
        src/oracle_fe_utils/ora_psqlscan.c
        src/test/regress/ora_pg_regress

Expected behavior/code

IvorySQL should ignore these generated, following upstream PostgreSQL.

Activity

  1. added
    bug
    on Jul 10, 2026
  2. 123123213weqw commented on Jul 10, 2026

    @123123213weqw
    Contributor

    I'd like to take this one. Opened #1388 with a fix: each generated file is ignored in its own directory's .gitignore with an anchored entry placed next to its non-Oracle sibling (e.g. /ora_psqlscanslash.c next to /psqlscanslash.c), mirroring how upstream PostgreSQL ignores its generated files. New .gitignore files are added for src/oracle_fe_utils/ and contrib/ivorysql_ora/. Verified with git check-ignore -v that all ten files are now matched and git status no longer lists them.

  3. added 2 commits that reference this issue on Jul 10, 2026
    ad8c916
    391c351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions