Questions tagged [google-source-repositories]
41 questions
12
votes
3 answers
Go Get for Google's Cloud Source Repository
Making two different go modules
source.cloud.google.com/me/a
source.cloud.google.com/me/b
With source.cloud.google.com/me/common as a common lib dependency (to share a model)
I'm trying to go get source.cloud.google.com/me/common (even manually…

Jared Hooper
- 881
- 1
- 10
- 31
6
votes
1 answer
Pushing code to google source repos error
I am getting the following error when pushing changes to my cloud source repo..
remote: INVALID_ARGUMENT: Request contains an invalid argument.
remote: [type.googleapis.com/google.rpc.LocalizedMessage]
remote: locale: "en-US"
remote: message:…

Lance Armah-Abraham
- 310
- 4
- 13
6
votes
1 answer
Google Cloud Functions - Can I deploy code from a different GCP project repo into a Cloud Function?
I would like to deploy a Google Cloud Function in project A, but I would like the source files to be those that I have sitting in a Google Cloud Source Repository in project B. Is this possible?
Thanks,

Balkan
- 691
- 1
- 8
- 22
4
votes
1 answer
Missing git tags when push to remote repository (e.g. Google Source Repositories)
I have just set up a local git repo and replicated it to a remote repo, based upon a Google "Cloud Source Repository". This mostly worked fine, except that the tags haven't been replicated. I have some older google repos, built in the same way (as…

P Burke
- 1,630
- 2
- 17
- 31
4
votes
2 answers
How do I clone a repo from Source Repositories to Compute Engine to pull it manually when needed
On my local macOS the following command worked fine:
$ gcloud source repos clone myrepo --project=myproject
(though I'm not sure it worked not because previously I followed the ~/.gitcookies procedure)
But when I do this on CE:
$ gcloud source…

Nakilon
- 34,866
- 14
- 107
- 142
3
votes
1 answer
How to run python unit test for Google Cloud Functions using Cloud Builds?
I am trying to build a CI/CD pipeline for my google cloud functions.
What i have right know is, i have local developement environment with gcloud and git.
i write my code in local environment and have cloudbuilds.yaml file.
After writing the code…

Hsn
- 1,168
- 2
- 16
- 39
3
votes
2 answers
ssh key for repositories - can't be established. ECDSA key fingerprint
Update: This is beta stuff, so I will wait and see!
I am unable to git push using ssh to source.developers.google.com
I get this error message git push --all google:
The authenticity of host '[source.developers.google.com]:

Chris G.
- 23,930
- 48
- 177
- 302
2
votes
1 answer
GCP Source Repository missing from All repositories list
TL;DR
My test-repo is missing from All repositories list inside Cloud Source Repository panel, but I can still access it. Why?
Also asked here on Google Cloud Community
Details
I made test-repo
I was able to git clone using CloudSDK, make changes…

Leonard
- 2,978
- 6
- 21
- 42
2
votes
1 answer
Is there a way to pass access tokens when calling git clone over HTTPS for Google Source Repository
I have been trying to use Google Cloud Functions (python 3.7) to basically clone a Google Source Repository. I'm using GitPython library and the service account for that Cloud Functions has Source Repository Reader access on the repository that I…

Shanu Koyakutty
- 123
- 1
- 10
2
votes
1 answer
Migrating google cloud functions from one project to another in GCP?
I have some cloud functions. I deploy these cloud function through source repository using cloudbuild.yaml and Cloud Triggers
The cloudbuild.yaml is..
steps:
- name: 'python:3.7'
entrypoint: 'bash'
args:
- '-c'
- |
pip3 install…

Hsn
- 1,168
- 2
- 16
- 39
2
votes
1 answer
Where are directory paths mapped to labels in SE Linux?
I see that Filesystem types and file types are declared in /external/sepolicy/file.te in AOSP.
But each type is representing or mapped to particular directory as mentioned in the comments.
Link:…

AnV
- 2,794
- 3
- 32
- 43
2
votes
1 answer
Unable to push the commits to Google Cloud Source Repositories
I am unable to push the commits to the remote When I try to push I am getting an error.
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects:…

Pragadees Waran
- 31
- 2
2
votes
2 answers
source repository does not work to publish messages on pub/sub
I've followed below link in order to integrate my repository to pubsub.
https://cloud.google.com/source-repositories/docs/quickstart-adding-pubsub-notifications#before-you-begin
However, my repository does not work to publish pubsub messages.
This…

Yh Chun
- 23
- 2
1
vote
1 answer
Firebase CLI v11.1.0 is incompatible with Node.js v16.1.0
I am using Google Cloud Shell Editor to run my Firebase+React application.
When I run Firebase CLI i got this:
Firebase CLI v11.1.0 is incompatible with Node.js v16.1.0 Please upgrade Node.js to version ^14.18.0 || >=16.4.0
If I update
npm install…

Jorge Montalvão
- 135
- 1
- 10
1
vote
1 answer
In GCP, GSR is their anyway we can restrict one repository to an IAM User?
In GCP, GSR is their anyway we can restrict one repository to an IAM User ?

Jithin Kumar S
- 701
- 2
- 9
- 20