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

build: make update-license script work on Windows #851

Merged
merged 4 commits into from
Jan 2, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Jan 2, 2020

This PR changes the update-license script to be a Node JS script instead of bash.

The intent is to make the script work on Windows so it can be used as part of a larger PR that will export the generated types for the GAPIC client (#849)

This PR also contains the output from running the script.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 2, 2020
@schmidt-sebastian schmidt-sebastian changed the title build: make udate-license work on Windows build: make update-license script work on Windows Jan 2, 2020
@codecov
Copy link

codecov bot commented Jan 2, 2020

Codecov Report

Merging #851 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #851   +/-   ##
======================================
  Coverage    87.4%   87.4%           
======================================
  Files          27      27           
  Lines       16542   16542           
  Branches     1151    1151           
======================================
  Hits        14458   14458           
  Misses       2078    2078           
  Partials        6       6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d16ab18...0892a62. Read the comment docs.

@@ -7428,4 +7428,4 @@ $root.google = (function() {
})();

return google;
})();
})();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have new lines back? (here and everywhere)


for (const file of process.argv.slice(2)) {
const content = fs.readFileSync(file);
fs.writeFileSync(file, `${LICENSE_HEADER}\n${content}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe just add \n here

@schmidt-sebastian
Copy link
Contributor Author

Line breaks added.

@schmidt-sebastian schmidt-sebastian merged commit 191d3b8 into master Jan 2, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/installscript branch January 3, 2020 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants