Skip to content

Dry run updates module with -m flag #5862

Closed
@jdell64

Description

@jdell64

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting (I did)
- [ ] feature request

Versions.

@angular/cli: 1.0.0
node: 7.7.3
os: darwin x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1
  
macOS Sierra

Repro steps.

50-207-252-218-static:angular-tour-of-heroes jeff$ ng g s data -m app.module -d
installing service
You specified the dry-run flag, so no changes will be written.
  create src/app/data.service.spec.ts
  create src/app/data.service.ts
  update src/app/app.module.ts

The log given by the failure.

The update src/app/app.module.ts file was updated even though the dry run flag was specified.

Desired functionality.

To not update.

Seems to be just the -d flag on services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions