Skip to content

Commit

Permalink
chore: make generate_index_ts() deterministic (#310)
Browse files Browse the repository at this point in the history
* fix: make `generate_index_ts()` deterministic (#1104)

Fixes googleapis/synthtool#1103
Source-Link: googleapis/synthtool@c3e41da
Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:e37a815333a6f3e14d8532efe90cba8aa0d34210f8c0fdbdd9e6a34dcbe51e96

* fix: regular expression matches v1, v1beta1 in order

* 🦉 Updates from OwlBot

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>
  • Loading branch information
3 people authored Jun 1, 2021
1 parent f74e760 commit 097df82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/google-devtools-containeranalysis/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def patch(library: pathlib.Path):
# Add beta version GrafeasClient to export
s.replace('src/index.ts',
r"""
export \{v1beta1, v1, ContainerAnalysisClient\};
export default \{v1beta1, v1, ContainerAnalysisClient\};""",
export \{v1, v1beta1, ContainerAnalysisClient\};
export default \{v1, v1beta1, ContainerAnalysisClient\};""",
'const GrafeasClient = v1beta1.GrafeasV1Beta1Client;\n' +
'type GrafeasClient = v1beta1.GrafeasV1Beta1Client;\n\n' +
'export {v1, v1beta1, ContainerAnalysisClient, GrafeasClient};\n' +
Expand Down
2 changes: 1 addition & 1 deletion packages/google-devtools-containeranalysis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import * as v1beta1 from './v1beta1';
import * as v1 from './v1';
import * as v1beta1 from './v1beta1';

const ContainerAnalysisClient = v1.ContainerAnalysisClient;
type ContainerAnalysisClient = v1.ContainerAnalysisClient;
Expand Down

0 comments on commit 097df82

Please sign in to comment.