GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — common: Avoid using require to read JSON file key by rakyll · Pull Request #100 · googleapis/google-cloud-node

Conversation

@rakyll

@rakyll rakyll commented Aug 7, 2014

Copy link
Copy Markdown
Contributor

require is not working well with relative paths.

Fixes #95.

Don't merge, unit tests are required.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rakyll
common: Avoid using require to read JSON file key.
7641028
`require` is not working well with relative paths.
@rakyll

rakyll commented Aug 7, 2014

Copy link
Copy Markdown
Contributor Author

@stephenplusplus, PTAL.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 7, 2014

Copy link
Copy Markdown
Contributor

LGTM so far. I can take over this one, if you'd like, otherwise feel free to ping again for a final look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rakyll

rakyll commented Aug 7, 2014

Copy link
Copy Markdown
Contributor Author

Feel free to take over. I will fix key related issues first.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 8, 2014

Copy link
Copy Markdown
Contributor

Sent a PR to your branch. 📬

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus and others added 2 commits August 8, 2014 13:31
@stephenplusplus
common: add test for conametion with keyFilePath.
766c244
Burcu Dogan
Merge pull request #1 from stephenplusplus/readkeyfile
3615e09
common: add test for connection with keyFilePath.
rakyll pushed a commit that referenced this pull request Aug 8, 2014
Burcu Dogan
Merge pull request #100 from rakyll/readkeyfile
bf63934
common: Avoid using require to read JSON file key
@rakyll
rakyll merged commit bf63934 into googleapis:master Aug 8, 2014
chingor13 pushed a commit that referenced this pull request Aug 22, 2022
@callmehiphop @JustinBeckwith
docs: update contributing path in README (#100)
daef0a3
chingor13 pushed a commit that referenced this pull request Sep 9, 2022
@gcf-owl-bot
fix: do not import the whole google-gax from proto JS (#1553) (#100)
47901ff
fix: use google-gax v3.3.0
Source-Link: googleapis/synthtool@c73d112
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:b15a6f06cc06dcffa11e1bebdf1a74b6775a134aac24a0f86f51ddf728eb373e
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
@gcf-owl-bot Benjamin E. Coe
fix(artifactregistry): fix resource pattern ID segment name (#100)
8b391db
PiperOrigin-RevId: 416140747
Source-Link: googleapis/googleapis@429d35c
Source-Link: googleapis/googleapis-gen@9fea20e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWZlYTIwZWRjNjA0MTMyNDg2NDZjNDljMmU1ZDk4NjYzM2VkYjE5MyJ9
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
@release-please
chore: release 1.2.2 (#104)
209412b
🤖 I have created a release \*beep\* \*boop\*
---
### [1.2.2](https://www.github.com/googleapis/nodejs-artifact-registry/compare/v1.2.1...v1.2.2) (2021-12-30)


### Bug Fixes

* **artifactregistry:** fix resource pattern ID segment name ([#100](https://www.github.com/googleapis/nodejs-artifact-registry/issues/100)) ([27d74c2](https://www.github.com/googleapis/nodejs-artifact-registry/commit/27d74c2d59bf0f9a8985f89b5440ef2fc8e45008))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Sep 13, 2022
@gcf-owl-bot
fix: do not import the whole google-gax from proto JS (#1553) (#100)
4015f00
fix: use google-gax v3.3.0
Source-Link: googleapis/synthtool@c73d112
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:b15a6f06cc06dcffa11e1bebdf1a74b6775a134aac24a0f86f51ddf728eb373e
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
@gcf-owl-bot Benjamin E. Coe
fix(artifactregistry): fix resource pattern ID segment name (#100)
cfa87b4
PiperOrigin-RevId: 416140747
Source-Link: googleapis/googleapis@429d35c
Source-Link: googleapis/googleapis-gen@9fea20e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWZlYTIwZWRjNjA0MTMyNDg2NDZjNDljMmU1ZDk4NjYzM2VkYjE5MyJ9
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
@release-please
chore: release 1.2.2 (#104)
c24a2d8
🤖 I have created a release \*beep\* \*boop\*
---
### [1.2.2](https://www.github.com/googleapis/nodejs-artifact-registry/compare/v1.2.1...v1.2.2) (2021-12-30)


### Bug Fixes

* **artifactregistry:** fix resource pattern ID segment name ([#100](https://www.github.com/googleapis/nodejs-artifact-registry/issues/100)) ([27d74c2](https://www.github.com/googleapis/nodejs-artifact-registry/commit/27d74c2d59bf0f9a8985f89b5440ef2fc8e45008))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@release-please release-please Bot mentioned this pull request Sep 14, 2022
chore: release main #3352
Merged
sofisl pushed a commit that referenced this pull request Oct 12, 2022
@renovate @JustinBeckwith
chore(deps): update dependency typescript to ~3.1.0 (#100)
06eaa3d
This was referenced Oct 12, 2022
migrate code from googleapis/nodejs-resource-manager #3402
Merged
migrate code from googleapis/nodejs-phishing-protection #3406
Merged
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@summer-ji-eng
chore: update jsdoc.js (#100)
b890ad1
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@gcf-owl-bot
feat: turns on self-signed JWT feature flag (#100)
0a92eb8
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 392067151

Source-Link: googleapis/googleapis@06345f7

Source-Link: googleapis/googleapis-gen@95882b3
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@release-please
chore: release 1.2.0 (#101)
b81cbb2
🤖 I have created a release \*beep\* \*boop\*
---
## [1.2.0](https://www.github.com/googleapis/nodejs-bigquery-reservation/compare/v1.1.6...v1.2.0) (2021-08-23)


### Features

* turns on self-signed JWT feature flag ([#100](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/100)) ([0047223](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/004722310ece662732fe60c8941be1b30214ed6d))


### Bug Fixes

* **build:** migrate to using main branch ([#97](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/97)) ([2e5a332](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/2e5a332b21067dd73ec6d2b218b87b61b8ebf59e))
* **deps:** google-gax v2.24.1 ([#99](https://www.github.com/googleapis/nodejs-bigquery-reservation/issues/99)) ([3a4cdec](https://www.github.com/googleapis/nodejs-bigquery-reservation/commit/3a4cdec8d028f0d6fd6d8ebc3977c00231b290bb))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Oct 13, 2022
migrate code from googleapis/nodejs-bigquery-reservation #3413
Merged
migrate code from googleapis/nodejs-cloud-shell #3415
Merged
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@release-please
chore(main): release 2.0.1 (#100)
002c8a0
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Nov 10, 2022
@JustinBeckwith
doc: use new import syntax in samples (#100)
c14bfc8
@sofisl sofisl mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-translate #3520
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Nov 11, 2022
@JustinBeckwith
build: use c8 for coverage (#100)
09225e6
@sofisl sofisl mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-datalabeling #3548
Merged
4 tasks
@miguelvelezsa miguelvelezsa mentioned this pull request Jan 14, 2026
migrate code from googleapis/nodejs-logging-bunyan #6995
Closed
GautamSharda pushed a commit that referenced this pull request Jan 14, 2026
@DominicKramer
chore: run CI as non-root user (#100)
5d56ac0
GautamSharda pushed a commit that referenced this pull request Jan 14, 2026
@JustinBeckwith
chore(package): update to the latest gts and typescript (#100)
3dad737
GautamSharda pushed a commit that referenced this pull request Jan 15, 2026
@DominicKramer
chore: run CI as non-root user (#100)
0c9cd9a
GautamSharda pushed a commit that referenced this pull request Jan 20, 2026
@JustinBeckwith
chore(package): update to the latest gts and typescript (#100)
03f3751
@GautamSharda GautamSharda mentioned this pull request Jan 20, 2026
chore: migrate code from googleapis/nodejs-error-reporting #7019
Closed
4 tasks
miguelvelezsa pushed a commit that referenced this pull request Jan 21, 2026
@DominicKramer
fix: fix linting errors in the samples (#100)
85e40b5
`eslint` was reporting the following error:
```
error  Async functions are not supported until Node.js 7.6.0. The configured version range is '>=6.0.0'  node/no-unsupported-features/es-syntax
```
This happened because `eslint` has a new `node/no-unsupported-features/es-syntax`
that by default reports an error.

The error occurs because the samples use async/await, async/await is not available
until Node >= 7.6.0, and the samples `package.json` specifies only Node >= 6.0 is required.

To fix the linting errors, the `node/no-unsupported-features/es-syntax` was configured to
only issue a warning.

This was done, instead of updating the `package.json` to specify that Node >= 7.6.0 is
required,   since the library `@google-cloud/logging-bunyan` library only requires
Node >= 6.0.0.  It is only if you want to use async/await that Node >= 7.6.0 is required.
@miguelvelezsa miguelvelezsa mentioned this pull request Jan 21, 2026
migrate code from googleapis/nodejs-logging-bunyan #7021
Closed
GautamSharda pushed a commit that referenced this pull request Jan 21, 2026
@JustinBeckwith
chore(package): update to the latest gts and typescript (#100)
7647b28
@GautamSharda GautamSharda mentioned this pull request Jan 21, 2026
chore: migrate code from googleapis/nodejs-logging-winston #7024
Closed
4 tasks
miguelvelezsa pushed a commit that referenced this pull request Jan 28, 2026
@trollkotze @stephenplusplus
excludeFromIndexes: fix for entity elements inside arrays (#101)
e4cd85a
Fixes #93 
Fixes #100
GautamSharda pushed a commit that referenced this pull request Feb 2, 2026
@JustinBeckwith
chore(package): update to the latest gts and typescript (#100)
155b685
@GautamSharda GautamSharda mentioned this pull request Feb 2, 2026
migrate code from googleapis/nodejs-logging-winston #7082
Closed
sofisl pushed a commit that referenced this pull request Feb 3, 2026
@stephenplusplus
Support parquet file format. (#100)
8f198c5
@sofisl sofisl mentioned this pull request Feb 3, 2026
migrate code from googleapis/nodejs-bigquery #7111
Merged
4 tasks
@GautamSharda GautamSharda mentioned this pull request Feb 3, 2026
migrate code from googleapis/nodejs-logging-winston #7129
Merged
4 tasks
This was referenced Feb 4, 2026
migrate code from googleapis/nodejs-logging-bunyan #7136
Closed
migrate code from googleapis/nodejs-logging-bunyan #7137
Closed
migrate code from googleapis/nodejs-logging-bunyan #7138
Merged
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
This was referenced Feb 23, 2026
migrate code from googleapis/nodejs-error-reporting #7294
Closed
migrate code from googleapis/nodejs-error-reporting #7308
Merged
This was referenced Feb 26, 2026
migrate code from googleapis/nodejs-firestore #7311
Closed
migrate code from googleapis/nodejs-firestore #7410
Merged
@GautamSharda GautamSharda mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-logging #7514
Merged
4 tasks
@meltsufin meltsufin mentioned this pull request Mar 10, 2026
chore: migrate code from googleapis/nodejs-logging #7550
Merged
@codyoss codyoss mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-precise-date #7594
Merged
This was referenced Mar 12, 2026
migrate code from googleapis/nodejs-promisify #7595
Closed
migrate code from googleapis/nodejs-promisify #7596
Merged
@GautamSharda GautamSharda mentioned this pull request Mar 23, 2026
migrate code from googleapis/nodejs-bigtable #7852
Merged
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Change to JSON key file breaks using relative paths

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rakyll @stephenplusplus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.