Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blank file create command #1008

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Conversation

jongio
Copy link
Member

@jongio jongio commented Nov 25, 2020

It wasn't clear to me that I needed to create the blank file myself. So I ran bicep build main.bicep and it errored on file does not exist.

It wasn't clear to me that I needed to create the blank file myself. So I ran bicep build main.bicep and it errored on file does not exist.
1. Create the blank main.bicep file
- Windows
```bash
fsutil file createnew main.bicep 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about fsutil :)

Is there a single canonical way to do this on windows? seems like there are a lot of options and recommendations out there

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No there isn’t. But most of the options are here: https://blog.jongallant.com/2016/11/windows-touch-equivalent/

I like fsutil because it creates a truly blank file, doesn’t require any additional install or bash, and doesn’t have a false negative error message when run

Copy link
Member

@anthony-c-martin anthony-c-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this!

@anthony-c-martin anthony-c-martin merged commit 44fc685 into Azure:main Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants