Skip to content

GitIgnore temporary folder used while generating clients #2068

@trivikr

Description

@trivikr

Is your feature request related to a problem? Please describe.

If yarn generate-clients command fails, it temporary folder .aws-models is added to git untracked files. This folder can mistakenly get staged while working on CodeGen code.

# Make changes to purposely fail Java CodeGen.
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

$ yarn generate-clients

...
...
./gradlew failed with { code: 1, signal: null }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

$ 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)
        scripts/generate-clients/.aws-models/

Describe the solution you'd like

GitIgnore the temporary folder used while generating clients

Describe alternatives you've considered

Manually removing the folder while working on Java CodeGen after build failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions