Skip to content

Commit

Permalink
chore: pin package versions in genkit init in prep for next release (
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj authored Oct 21, 2024
1 parent a4d01a1 commit cd21d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genkit-tools/cli/src/commands/init/init-go.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export async function initGo(options: InitOptions, isNew: boolean) {
function installPackages(packages: string[]) {
const spinner = ora('Installing Go packages').start();
try {
execSync(`go get ${packages.map((p) => p + '@latest').join(' ')}`, {
execSync(`go get ${packages.map((p) => p + '@v0.1').join(' ')}`, {
stdio: 'ignore',
});
spinner.succeed('Successfully installed Go packages');
Expand Down
4 changes: 2 additions & 2 deletions genkit-tools/cli/src/commands/init/init-nodejs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ export async function initNodejs(options: InitOptions, isNew: boolean) {
// Compile NPM packages list.
const packages = [...externalPackages];
if (!distArchive) {
packages.push(...internalPackages);
packages.push(...plugins);
packages.push(...internalPackages.map((p) => `${p}@^0.5`));
packages.push(...plugins.map((p) => `${p}@^0.5`));
}

// Initialize and configure.
Expand Down

0 comments on commit cd21d4c

Please sign in to comment.