Recent

Author Topic: How to disable automatic source/component update?  (Read 2619 times)

Kurt

  • Jr. Member
  • **
  • Posts: 63
How to disable automatic source/component update?
« on: March 30, 2024, 09:13:27 pm »
I am seeing source code in Lazarus get updates that I don't initiate.

I'm having a hard time finding the setting to turn this off - does anyone know where I can look for this?

dsiders

  • Hero Member
  • *****
  • Posts: 1081
Re: How to disable automatic source/component update?
« Reply #1 on: March 30, 2024, 09:36:07 pm »
I am seeing source code in Lazarus get updates that I don't initiate.

I'm having a hard time finding the setting to turn this off - does anyone know where I can look for this?

Lazarus does not auto-update from the git repo. If you're getting updates, it's because you asked for them. Are you pulling from the main or fixes branches? Then don't.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Kurt

  • Jr. Member
  • **
  • Posts: 63
Re: How to disable automatic source/component update?
« Reply #2 on: March 30, 2024, 10:57:25 pm »
I'm not pulling from anything.  The only thing I even use git for is a personal project, and I never touch it inside the Lazarus tree.  I suppose git was used for the initial installation, since I used fpcupdeluxe to do it, but I haven't run fpcupdeluxe to update things in at least six months, and I'm getting this sort of notification in Lazarus once a month or so.

So I'm quite at a loss as to what is causing this.  Do you know tortoisegit well?  Does it have some sort of setting where it will automatically update a repo from upstream?  I wouldn't have expected this, but it's all I can think of.

Thaddy

  • Hero Member
  • *****
  • Posts: 14376
  • Sensorship about opinions does not belong here.
Re: How to disable automatic source/component update?
« Reply #3 on: March 31, 2024, 12:55:50 am »
Those files are for IDE project configuration, make info,  and are auto generated. Do not touch by hand. You can not turn it off and should not turn it off: your Lazarus project would be broken.
« Last Edit: March 31, 2024, 01:00:34 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Fibonacci

  • Sr. Member
  • ****
  • Posts: 419
Re: How to disable automatic source/component update?
« Reply #4 on: March 31, 2024, 03:24:19 am »
Funny thing! I just got the same popup!

I have a suspect: TIME CHANGE :D

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: How to disable automatic source/component update?
« Reply #5 on: March 31, 2024, 08:11:16 am »
Funny thing! I just got the same popup!

I have a suspect: TIME CHANGE :D

I've got same popup this morning. Probably something in Lazarus 3.x changed to trigger this.

P.S.: This happened only in Lazarus left open last night (while computer was in hibernation).
« Last Edit: March 31, 2024, 08:31:44 am by dseligo »

Kurt

  • Jr. Member
  • **
  • Posts: 63
Re: How to disable automatic source/component update?
« Reply #6 on: March 31, 2024, 09:32:58 pm »
Funny thing! I just got the same popup!

I have a suspect: TIME CHANGE :D

Time change isn't it - there are physical changes to the files.  Mostly package version number increases, but other more meaningful changes too.

Funny thing! I just got the same popup!

I have a suspect: TIME CHANGE :D

I've got same popup this morning. Probably something in Lazarus 3.x changed to trigger this.

I haven't changed anything in Lazarus since installation over six months ago.  No new version installed.

Those files are for IDE project configuration, make info,  and are auto generated. Do not touch by hand. You can not turn it off and should not turn it off: your Lazarus project would be broken.

What in Lazarus is causing an automated increase in, say, "Package Version" in an lpk when nothing else has changed?  And what is causing this when Lazarus has been doing nothing but sit idle.  Like Fibonacci, I normally see this when Lazarus has been left on overnight or over a few days while I've been away.   I want to know what in Lazarus is doing this.  Lazarus is, or should be, a pull-string toy.  If you don't pull the string, it should do exactly nothing but sit there.  When a pull toy just sitting on your shelf suddenly bursts out with "There's a snake in my boot!", that's creepy and worthy of investigation.

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: How to disable automatic source/component update?
« Reply #7 on: April 01, 2024, 12:53:17 am »
What in Lazarus is causing an automated increase in, say, "Package Version" in an lpk when nothing else has changed?  And what is causing this when Lazarus has been doing nothing but sit idle.  Like Fibonacci, I normally see this when Lazarus has been left on overnight or over a few days while I've been away.   I want to know what in Lazarus is doing this.  Lazarus is, or should be, a pull-string toy.  If you don't pull the string, it should do exactly nothing but sit there.  When a pull toy just sitting on your shelf suddenly bursts out with "There's a snake in my boot!", that's creepy and worthy of investigation.

What Lazarus version do you have?
I experienced this behaviour just when time was changed. And, at least in one of the packages listed, there were also some boolean value changed from true to false (or vice versa). Too bad I didn't do more screenshots.
Usually when time changes, if I have Lazarus open, then I am warned only about my files, not packages (if I remember correctly).

Kurt

  • Jr. Member
  • **
  • Posts: 63
Re: How to disable automatic source/component update?
« Reply #8 on: April 01, 2024, 04:30:41 am »
What Lazarus version do you have?

Version 2.2.6 installed October of last year.

Quote
Usually when time changes, if I have Lazarus open, then I am warned only about my files, not packages (if I remember correctly).

The screenshot here shows a package version change, and you can just barely see a more substantive change in a comment.  There were more than just .lpk files in this batch, and while most of the changes were minor package version numbers, there were other more substantive ones.

It doesn't happen often, but it happens more than just with time changes.  It is always when Lazarus has been left running,  and so far has always been when I have been away from the computer (never when I've triggered a build or have interacted with Lazarus in some way).  All the changes this time around were inside the Lazarus tree.  Not all of them in components, some were in the LCL source itself.

 I wish I had recorded the changes more faithfully, but I figured it would be a well-known setting that someone could identify.

 

TinyPortal © 2005-2018