Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,826
Community Members
 
Community Events
165
Community Groups

golang module update not available until ten minutes or so after the commit

I have two projects, written in go. Project A is the main application and Project L is the library on which Project A depends.

I make a change to Project L and commit it.

I attempt to update the go.mod in Project A, but the go tools do not see the commit to Project L for about 10-15 minutes - at which point the go module update works correctly.

During this latency period I see the commit on Project L.

I assumed that under the hood that the go module tooling simply used git to pull down the latest commit (when performing the go module update).

Is there some sort of caching going on here? Either with the git server, or something with my golang configuration?

1 answer

0 votes

Hi Chris and welcome to the community.

Are Project A and Project L two separate repositories in Bitbucket Cloud?

You mention

the go tools do not see the commit to Project L for about 10-15 minutes

I am unsure where exactly the new commit is not visible. Assuming that Project L is a repo, do you have a clone of this repo (or just its source code) on your local machine or a different server? And is this where you don't see any new commits immediately?

If this is the case, how does this clone (or the source code) on that machine get updated when you make a new commit to the Bitbucket repo? Are you using a CI/CD tool? Are you using webhooks and a script to pull changes on new commits?

The first thing to figure out is how these updates are triggered, in order to find out why this delay occurs.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,160 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you