Skip to content

Detect Windows incompatible filenames in CI #338

Closed
@joaocgreis

Description

@joaocgreis

@nodejs/jenkins-admins

When npm was updated to 3.6.0 in master (nodejs/node#4958), some files were accidentally included that cause git issues checking out in Windows (nodejs/node#5094).

After nodejs/node#5211 nodejs/node#5369 or nodejs/node#5212 land, I plan to add this to node-compile-windows, to prevent the same problem from happening again:

:: https://github.com/nodejs/node/issues/5094
ECHO OFF
FOR /F %%F IN ('git status --porcelain') DO (
  git status
  echo.
  echo ERROR: Workspace cannot be cleaned, possible problem with committed file names
  exit /b 1
)
ECHO ON

Tests:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions