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

refactor(go): Rename goproxy-related files #12405

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`datasource/go/goproxy GOPROXY fetches release data from goproxy 1`] = `
exports[`datasource/go/releases-goproxy GOPROXY fetches release data from goproxy 1`] = `
Array [
Object {
"headers": Object {
Expand Down Expand Up @@ -34,7 +34,7 @@ Array [
]
`;

exports[`datasource/go/goproxy GOPROXY handles comma fallback 1`] = `
exports[`datasource/go/releases-goproxy GOPROXY handles comma fallback 1`] = `
Array [
Object {
"headers": Object {
Expand Down Expand Up @@ -86,7 +86,7 @@ Array [
]
`;

exports[`datasource/go/goproxy GOPROXY handles pipe fallback 1`] = `
exports[`datasource/go/releases-goproxy GOPROXY handles pipe fallback 1`] = `
Array [
Object {
"headers": Object {
Expand Down Expand Up @@ -129,7 +129,7 @@ Array [
]
`;

exports[`datasource/go/goproxy GOPROXY handles timestamp fetch errors 1`] = `
exports[`datasource/go/releases-goproxy GOPROXY handles timestamp fetch errors 1`] = `
Array [
Object {
"headers": Object {
Expand Down Expand Up @@ -163,7 +163,7 @@ Array [
]
`;

exports[`datasource/go/goproxy GOPROXY short-circuits with comma fallback 1`] = `
exports[`datasource/go/releases-goproxy GOPROXY short-circuits with comma fallback 1`] = `
Array [
Object {
"headers": Object {
Expand Down Expand Up @@ -195,7 +195,7 @@ Array [
]
`;

exports[`datasource/go/goproxy requests listVersions 1`] = `
exports[`datasource/go/releases-goproxy requests listVersions 1`] = `
Array [
Object {
"headers": Object {
Expand All @@ -209,7 +209,7 @@ Array [
]
`;

exports[`datasource/go/goproxy requests versionInfo 1`] = `
exports[`datasource/go/releases-goproxy requests versionInfo 1`] = `
Array [
Object {
"headers": Object {
Expand Down
8 changes: 4 additions & 4 deletions lib/datasource/go/index.spec.ts
@@ -1,18 +1,18 @@
import { mocked } from '../../../test/util';
import * as _hostRules from '../../util/host-rules';
import * as _goproxy from './goproxy';
import * as _direct from './releases-direct';
import * as _goproxy from './releases-goproxy';
import { getReleases } from '.';

jest.mock('../../util/host-rules');
const hostRules = mocked(_hostRules);

jest.mock('./goproxy');
const goproxy = mocked(_goproxy);

jest.mock('./releases-direct');
const direct = mocked(_direct);

jest.mock('./releases-goproxy');
const goproxy = mocked(_goproxy);

describe('datasource/go/index', () => {
describe('getReleases', () => {
beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/go/index.ts
@@ -1,6 +1,6 @@
import type { GetReleasesConfig, ReleaseResult } from '../types';
import * as goproxy from './goproxy';
import { getReleases as directReleases } from './releases-direct';
import * as goproxy from './releases-goproxy';

export { id } from './common';

Expand Down
Expand Up @@ -8,9 +8,9 @@ import {
parseGoproxy,
parseNoproxy,
versionInfo,
} from './goproxy';
} from './releases-goproxy';

describe('datasource/go/goproxy', () => {
describe('datasource/go/releases-goproxy', () => {
beforeEach(() => {
memCache.init();
});
Expand Down
File renamed without changes.